Not sure what to do here. I created a site and made a Members group with 1 person in it. They are unable to upload specifically PDFs in any channel entry. The message they get is “Cannot upload file. This file couldn’t be written to disk”. They have permission to upload to the directory, the permissions on the upload folder and subfolder were set to 777, and there is unlimited space on the server. They can upload other files but not PDF. I, as super admin, can upload PDFs no problem. How can this be fixed?
This may be a security thing. You could try specifying the member group ID to exclude from XSS cleaning in your config.php and testing then.
EE Docs : xss_clean_member_group_exception
I am also getting a similar issue, where i am trying to upload a pdf from within an entry and in the file manager and i keep getting
===
Cannot Upload File
File not allowed.
===
I have xss filtering off and allowed types set to all. Paths are correct as i can upload images ok. I have even gone as far as outputting the $_FILES array to check the mime type which is coming back as a pdf.
At a loss as to what else to try. Any ideas?
This may be a security thing. You could try specifying the member group ID to exclude from XSS cleaning in your config.php and testing then. EE Docs : xss_clean_member_group_exception
Thanks, John - I ran into this same problem, and I feel better doing this selective config repair over turning off the XSS filtering globally.
Almost perfect solution… but how would I simply remove PDF’s from the XSS filter list??? That seems it would be a better answer still.
Terry
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.