Forums / General Questions / File Upload Attribute - File Size Limit?

File Upload Attribute - File Size Limit?

Locked

Started by genevieve on 3 May 2010, 11:03 PM · Views: 4,545

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
3 May 2010, 11:03 PM
#1
genevieve avatar

genevieve

New Zenner

Join Date:
Sep 2009
Posts:
5
Plugin Contributions:
0

File Upload Attribute - File Size Limit?

I have ZC v.1.3.8 installed for a client who will be selling customized photo announcement cards. I've set up a bunch of product attributes that will allow customers to enter the custom info for their cards when they add the product to their cart. I'm also using a product attribute file upload so that customers can upload the image(s) they want to go on their custom cards. The uploaded files are print-quality photos, so they are large files (2-4MB). If the card requires just one photos, the file upload works fine. If multiple file uploads are required, however, Zen Cart kicks back an error message that says "Warning File was too large to upload!" Is there somewhere I can change the file upload limit allowed? Or another way I can make this work (maybe some way to upload each file one at a time, rather than all at once)?

3 May 2010, 11:09 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: File Upload Attribute - File Size Limit?

There are 2 parts to setting file upload size limits:

a) Admin->Configuration->Maximum Values->Maximum Upload Size

b) Your server's PHP configuration. You can check the allowed limits by going to Admin->Tools->Server Info and looking at these:
PHP File Uploads: On
Max Size: xxM (this is the PHP upload_max_filesize setting)
POST Max Size: xxM (this is the PHP post_max_size setting)

Both the "Max Size" and "POST Max Size" need to accommodate the file sizes you intend to use, and should be at least as big as the amount you set in (a) above.

You may have to work with your hosting company to set those values appropriately.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 May 2010, 5:33 PM
#3
genevieve avatar

genevieve

New Zenner

Join Date:
Sep 2009
Posts:
5
Plugin Contributions:
0

Re: File Upload Attribute - File Size Limit?

Thank you so much! That was exactly what I needed. I upped the ZC file upload limit, and everything seems to be working as needed now. :)