Closed oliverwendenburg closed 12 years ago
Using the "Filename"-Field from the database results in changed filenames on download, within this field SilverStripe stores the whole path
assets/Uploads/SilverStripe.png
so on download what you get will be named
assets-uploads-silverstripe.png
Used field should be "Name" instead of "Filename", so the old code of SecureFilesController.php looks like
function fileFound(File $file, $alternate_path = null) { // File properties $file_name = $file->Filename; ...... }
but should be
function fileFound(File $file, $alternate_path = null) { // File properties $file_name = $file->Name; ...... }
Using the "Filename"-Field from the database results in changed filenames on download, within this field SilverStripe stores the whole path
so on download what you get will be named
Used field should be "Name" instead of "Filename", so the old code of SecureFilesController.php looks like
but should be