If the File Cannot Be Uploaded

  • Check permissions for the uploading file. It should have readable permissions for all users. Set up the correct permissions if needed.
  • Check permissions for the var/attachments directory of your CS-Cart installation. It should have writable permissions for all users. Set up the correct permissions if needed.
  • Check the maximum size of the uploaded file on your server:
    1. In the Administration panel, go to Administration → Logs.
    2. Click the gear button and choose PHP information from the drop-down menu. A new page that displays the result of phpinfo PHP function will open.
    3. Search for the upload_max_filesize variable. The value of this variable defines the maximum size of the file which can be uploaded through PHP script on your server. For example, if the variable value is 5M, it means that the maximum size of the file is 5 Mb.

If the upload_max_filesize value is less than the size of the file you would like to upload:

  1. Replace the following line of the code in the php.ini file in the root directory on your server:

    upload_max_filesize = 5M
    

    with this one:

    upload_max_filesize = 30M
    
  2. Save the file. If you do not have this file, you can create it.

    Important

    php.ini files are not supported on some servers. In this case contact your server administrator and ask him to increase the value of the upload_max_filesize PHP variable for your account.