uploadAllow broken?

Added by E R 6 months ago

Finally getting around to playing with the allow/deny file types and it doesn't seem to be working. According to the documentation I should be able to use the settings below to allow zip files but nothing else. However, it denies everything. I have tried switching the 'deny,allow' around with no luck.

    'uploadAllow'   => array('application/zip'),
    'uploadDeny'    => array('all'),
    'uploadOrder'   => 'deny,allow'

Thanks in advance,
Twitch


Replies (3)

RE: uploadAllow broken? - Added by Troex Nevelin 6 months ago

Make sure that mimeDetect works correctly. Upload your file without these rules and look which mime type it has

RE: uploadAllow broken? - Added by E R 6 months ago

Thanks for the quick reply, Troex. Looking at the files in list view, "Kind" appears to show the correct type. I tried changing mimeDetect to internal and it didn't seem to make a difference on allowing upload.

RE: uploadAllow broken? - Added by Troex Nevelin 6 months ago

I've checked your settings on the demo page and it is working as expected. Enable debug in connector and see the output after upload there will be debug info about uploaded file mime type.

I'm sure that is mime type problem.

(1-3/3)