Technote Details :: MX CSV error: File Upload Error. No write permissions in folder

Issue

I have installed the MX CSV Import-Export extension, and have created an import page. When I try to import data, I get an error message saying: 
File Upload Error. No write permissions in "/htdocs/includes/tng/triggers/../../csv/tmp/" folder. (FILE_UPLOAD_ERROR)

Reason

This happens because the CSV import transaction must first upload the CSV file to a temporary folder, and only then it can read its contents and insert the data into the table. The temporary folder is  /includes/csv/tmp/ . If the folder does not exist, an attempt is made to create it. If no write permissions exist on the folder (meaning that the user running the web server cannot create folders), the attempt fails, returning the error message.

The error message is also displayed when the folder exists, but the web server is not allowed to write files into it, meaning that the CSV file cannot be copied.

Solution

In order to avoid seeing this error message, there are two solutions:

  1. Set the correct write permissions for the includes/csv folder. If the folder is writable, when the first import is attempted, the folder will be automatically created. Instructions on how to change the permissions for a folder vary based on your particular server operating system, and should be covered in the user manual.
  2. Create the folder includes/csv/tmp and set writing permissions only on the tmp folder. This way, the web server will be able to upload CSV files, but will not be able to write outside the tmp folder.

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.