Error message: Can’t upload any CSV file in Media Library
-
Hi
I recently updated my WordPress platforms from version 4.7 to version 4.7.1 to solve the security problems that had been reported.
After upgrading to version 4.7.1, users accessing the platforms we manage have problems uploading a “CSV” file. WordPress platforms we manage are multisite platforms.
When trying to upload a CSV file from Media – Add new, the error message that appears on the screen is the following:
“Sorry, for security reasons, such files are not allowed.”
The allowed extensions filter is configured in the Network Administrator – Settings – Network Settings and in “Allowed File Type” already from previous versions of WordPress we had the following permitted file filter:
Jpg jpeg png gif svg mp3 m4a wav ogg oga mp4 ogv webm mov avi wmv flv midi mid swf pdf doc doc odt odg odds ods xls xlsx csv zip gz gzip wma rar ppt ppt pptx pps ppsx
It only gives error when I try to upload a file with .csv extension. I have tried with almost all other types of files allowed and I do not have any problem when uploading them, only gives error when the file that is tried to upload is type .csv.
Temporary, in wp-config.php has been added the line
define (‘ALLOW_UNFILTERED_UPLOADS’, true);
This represents a risk since you can upload any type of file to the platform.
It would be possible to solve the problem to avoid having to put this line of code in the wp-config.php of our platforms.
Many thanks in advance
Regards
- The topic ‘Error message: Can’t upload any CSV file in Media Library’ is closed to new replies.