Fixing the Error: “This file is missing” in PrestaShop 1.6

One great feature PrestaShop has is to allow the sale of virtual products. These are downloadable items such as ebooks, videos, audio files, software, etc. These files can be very small or very large in size, depending on the nature of the file.

When adding a virtual product in PrestaShop, there may be issues when the file is over 10MB. The issue manifests as a missing file error like the one below:

This file “testfile.txt” is missing:
Server file name : 9a98f2108138018a56bdeb32f83c8bd285da3358

We have discovered how to correct this issue and explain it in our article below.

How to increase the upload limit in PrestaShop 1.6

  1. Log into your cPanel dashboard.
  2. From within the dashboard, click on the File Manager icon, located in the Files category.
  3. Once in the File Manager navigate to the root folder for your PrestaShop store. Unless you have it in a special folder, the root folder should be public_html.
  4. Once in the root folder, you should see the normal PrestaShop file structure. You should see an admin folder (though it may be named differently), cache, config, classes, and others. Double click on the classes folder to open it.
  5. Look through the files and locate the Uploader.php file. Open it for editing.
  6. Once open look for the setting “const DEFAULT_MAX_SIZE = 10485760;” which is located near the top of the file, around line 29. The setting is set in bytes, so 10485760 bytes is 10MB, change it to anything you like. The chart below demonstrates some options in bytes.

    1000 (1GB)1048576000

    You do not have to set the numbers exactly as shown, they are merely for reference purposes and for purists like me who have to be exact. Be sure to enter a number large enough to accommodate the file size you will be working with.

  7. After you edit the setting, click on the Save Changes button in the upper right corner to save and activate the change. You can now upload the file successfully. Below is a before and after showing the error and how it appears once it the setting is changed.

14 thoughts on “Fixing the Error: “This file is missing” in PrestaShop 1.6

  1. Man you are a star. Found the uploader.php insider Classes folder 

    I think people need a glass to look up this simple cool file. 


    Guys never mind 🙂 



    1. Hey, J!

      Thanks for posting your comment and feedback! We’re happy to hear we were able to assist you with locating that.

      Carlos E

  2. I have made changes in classes/uploader.php … bt the result is same while uploading my module in prestashop…

    is there any other place of file, folder where i have to make changes?

    if ther them please lemme know…

    1. Hello Supriya,

      Sorry for the problems that you’re facing after making a change to the classes/uploader.php. We’re not sure what you’ve done. Can you explain what you have changed and what you’re seeing that still requires changes? If it’s custom coding, you may be better served by posting in the PrestaShop Support forums.

      Give us a little more information on the issue and we can investigate further, or please place your query directly with PrestaShop’s support forum if you are making custom coding changes to the application.

      Arnel C.

  3. Hello, I have failed to trace the file that i have to edit in prestashop Kindly help me locate the exact file to edit prestashop might have changed from the previous structure.


    Thank you


    1. Hello Ronnie,

      I double-checked a stock installation of PrestaShop and the uploader.php file is in the same place under the Classes folder. You may need to reinstall your PrestaShop core files if you’re missing it.

      Arnel C.

    1. Hello anis,

      Thank you for contacting us. Along with making the change in your php.ini, you may have to also make your php.ini recursive, meaning it will affect the child folders/files.

      You can also verify the settings changed with a phpinfo.php page.

      If your problems persist, I recommend contacting your host so they can review the server logs for additional issues.

      Thank you,

  4. hi thx for this help  but did not work for me     i have version 1.6  last one     my server php.ini  set  256mb 


    uplaoder php   set as you   show me  here   


    class UploaderCore
        const DEFAULT_MAX_SIZE =1048576000;

        private $_check_file_size;
        private $_accept_types;
        private $_files;
        private $_max_size;
        private $_name;
        private $_save_path;

    still  same  problem  :  The limit chosen is larger than the server’s maximum upload limit. Please increase the limits of your server. 


    Server information Linux #115-Ubuntu SMP Thu Mar 12 14:18:19 UTC 2015 x86_64


    Server software version Apache/2.2.22 (Ubuntu)


    PHP version 5.3.10-1ubuntu3.17


    Memory limit 256M


    Max execution time 30


    any help 

    1. Hello Anis,

      You may want to check and increase your upload max file size in php .ini. That will allow your larger files to be uploaded.

      Kindest Regards,
      Scott M

  5. 2 days ago I installed Prestashop 1.6.09 and I dont see any File Manager. No even a
    Files category. I already checked in modules.. but nothing.

Was this article helpful? Join the conversation!