Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default 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)?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,463
    Blog Entries
    3
    Plugin Contributions
    111

    Default 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!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default 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. :)

 

 

Similar Threads

  1. Can I set the minimum file upload size and dimensions?
    By needhelpwiththis in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 3 Sep 2011, 05:34 AM
  2. Easy Populate File Size Limit?
    By kbmets7 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Mar 2008, 04:37 AM
  3. File size limit on downloadable products?
    By jiffy in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 11 Feb 2008, 03:35 AM
  4. How Do I Increase The File Upload Size?
    By printjuce in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 31 Jan 2008, 02:27 AM
  5. To limit upload file of type .EXE
    By Man_world in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 5 Dec 2006, 02:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •