Not able to upload files bigger than 12 mb in Prestashop 1.6

Asked by:
dulzuradepapel / 8 Points
Time:
2014-04-26 9:14 am EST
Category:
Prestashop
Hits:
370
What happens is i have a shop in prestashop 1.6.0.5 , and in the " products ", attempt in " digital product" include a file that weighs more than 11 megabytes and when the load ends aprece an error saying :
This file " (nombre del archivo) " not found : Server file name: 4af77c28337be1bb36t580e94709ab64c95b6f4c
and that's it , from the support de Hub have changed all possible settings on the server to upload files, but I still can do it.

thanks in advance!

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User

0

ScottM
Staff
16,266 Points
2014-04-28 2:36 pm EST
Hello dulzuradepapel,

Thank you for your question. After a long bout of tracking through the PrestaShop files we have an answer for you. There is a constant setting in the Uploader.php file. This is set to 10485760, which is 10MB. My testing was failing with files over 10MB but was successful with files under 10MB. Once I changed that number to something higher, say 20485760, I was able to successfully upload files larger than 10MB.

To set the constanct, you will need to open your File Manager in cPanel and go to your '/classes' folder in your PrestaShop setup. Then look for the Uploader.php file. Edit that file and set the constant named DEFAULT_MAX_SIZE as you wish. Be sure you set it in bytes. Below are some quick calculations for you:

15MB 15728640
20MB 20971520
30MB 31457280
40MB 41943040

Kindest Regards,
Scott M

To submit a comment on this answer, please first login.

Hello Scott M.
You are the best!!
I have spent many days trying to resolve this.
Change the settings as you said and it worked to perfection
Infinite Thanks!! for your time, for your impeccable explanation.
Sorry if my English is not clear, I speak Spanish
Thanks so much!!
Regards Jimena - Dulzura de Papel
dulzuradepapel
8 Points

2014-04-28 4:58 pm EST
Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.