Use the <v:file> tag: http://docs.vaeplatform.com/v_file
The problem with that is I need to use the imagesize attribute to specify a crop size.
Does the Vae sever allow for php header() functions to be used? I was thinking of trying something like this (for a jpeg)
The url would behttp://0.0.0.0:9999/downloader.php?file=http://ajaffe.vaesite.com/__data/a1b0ec43fb0eb3acec34c9cd28f6a88f.jpg
<?php
$file = $_GET['file'];
echo $file;
if(!file_exists($file)))
{
die('Error: File not found.');
}
else
{
// Set headers
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=$file");
header("Content-Type: image/jpg");
header("Content-Transfer-Encoding: binary");
// Read the file from disk
readfile($file);
}
?>
It looks like you're new here. If you want to get involved, click one of these buttons!