Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Posts
    21
    Plugin Contributions
    0

    Default File Uploads Issue

    We're having a problem with uploading a file through the shopping cart. Please view the site at www.visionsoncanvas.com/store. The problem we are having is that when we upload files larger than 2 megs, the file doesn't show up. We have Configuration > Maximum Values > Maximum File Upload Size set to 200000000 and they don't show up. The server is configured to handle files as large as 50 megs. Is there a setting in the MySQL that defaults the file upload size to a maximum of 2 megs? Like I said, everything works perfectly when the file size is under 2 megs. Unfortunately, due to the type of business it is, there are going to be very large files uploaded. Any suggestions? Thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: File Uploads Issue

    You need to have the PHP settings for both post_max_size and upload_max_filesize set large enough to handle the files you're uploading.
    .

    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.

  3. #3
    Join Date
    Feb 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: File Uploads Issue

    The php settings - That would be in the root directory for server? Or are those settings in the admin?

  4. #4
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: File Uploads Issue

    Look for a php.ini file on your web server root directory. Use an ftp program to download it, and make the changes:

    HTML Code:
    post_max_size =    30M ; Maximum size of POST data that PHP will accept.
    HTML Code:
    upload_max_filesize = 30M ; Maximum allowed size for uploaded files
    That should do it. The above example is max 30 meg upload.

  5. #5
    Join Date
    Feb 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: File Uploads Issue

    The php.ini file sounded familiar when you mentioned it. I went to the server root directory, found the php.ini file and looked at both the post_max_size and upload_max_filesize and found that I'd already set them at 100M for another project. Any other ideas as to what might be causing the problem? I'm at a total loss for ideas. Thanks.

  6. #6
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: File Uploads Issue

    Yes. Put the php.ini file in your store directory. Or look for a php.ini file in the store directory and edit that one.

  7. #7
    Join Date
    Feb 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: File Uploads Issue

    There were 3 php.ini files on my server. One each under php, php4, and php5. The files for php and php5 were both set at 100M. The php.ini file for php4 was set at 8M for post_max_size and 2M for upload_max_filesize. I changed them both to 50M and we'll test to see if it made any difference. Hopefully, we got it. Thanks.

  8. #8
    Join Date
    Feb 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: File Uploads Issue

    I'll look for a php.ini file in the store directory as well and edit that one too. thanks.

 

 

Similar Threads

  1. File uploads are disabled in the php.ini configuration file
    By stanleymog in forum General Questions
    Replies: 2
    Last Post: 19 Aug 2008, 01:24 PM
  2. file type options for file uploads?????
    By GoldBuckle in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 25 Mar 2008, 10:39 AM
  3. file uploads
    By virtualahmad in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 4 Apr 2007, 01:51 AM
  4. Replies: 5
    Last Post: 15 Jan 2007, 06:23 AM

Posting Permissions

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