I just can't download uploaded files through the result browser. Don't get it. So I try to mod the upload script. Should it be possible to download files with their original file names?
Updated some code in upload.php:
$prefixname = sRandomChars(3)."_";
$sTempUploadDir = $tempdir.'/upload/';
$filename = $prefixname.$_FILES['uploadfile']['name'];
$randfileloc = $sTempUploadDir . $filename;
and changed this:
$return = array(
"success" => true,
"size" => $size,
"name" => rawurlencode(basename($filename)),
"ext" => $ext,
"filename" => $filename, //$randfilename
"msg" => $clang->gT("The file has been successfuly uploaded.")
);
Now the files are uploaded with readable names without the risk of duplicating through the 3 random character prefix.
Is it possible to get the token value into upload.php as prefix instead of these 3 random chars?
Is it possible to add a command to the upload script to set the permissions of the file different.
The change of filenames works with my adjustment above, but the files remain in the tmp dir, and are not moved to upload/survey/number/