Results 1 to 9 of 9

Hybrid View

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

    Default Re: Maximum File Upload Size Problem

    You'll need to sort those issues out with your hosting company. It's likely that your server won't let you put PHP directives in your .htaccess files, and thus you'll need to use a php.ini file in that folder instead. Again, your hosting company can tell you what exactly the problem is, and can help you set the proper limits as far as PHP itself is concerned.
    As for your custom code, the author from whom you obtained that code is your best line of support.

    This is not a Zen Cart issue.
    .

    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.

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Maximum File Upload Size Problem (custom upload script outside Zen Cart)

    OK, I seem to have it working now. I dropped a copy of my php.ini into the file upload directory, and another in the parent folder where my original .htaccess is. Now, it's not allowing uploads of larger files.

    Just two questions now:

    1. It's not uploading the larger files, but it's not for the want of trying. When I try to upload a 3mb file, the little ajax-loader spins for a very long time as though it's actually uploading. It takes a few minutes, then just stops with no message.

    Is there a way to make it determine the file size 'before' attempting to upload and perhaps give the user a message that their file is too large and hasn't been uploaded?

    2. Other than custom coding the index.php file, is there a way to make php.ini ot .htaccess deny the upload of certain file types and only allow .gif .jpg .png ?

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

    Default Re: Maximum File Upload Size Problem (custom upload script outside Zen Cart)

    You're talking about customizing a script that's completely separate from Zen Cart.
    I suggest you take that discussion to wherever you got your script from.
    .

    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. #4
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Maximum File Upload Size Problem (custom upload script outside Zen Cart)

    The Upload Point software was introduced in this thread

    http://www.zen-cart.com/forum/showpo...&postcount=168

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

    Default Re: Maximum File Upload Size Problem (custom upload script outside Zen Cart)

    Notwithstanding, the problem HAS NOTHING TO DO WITH ZEN CART. It's custom code that's having conflicts as a result of how your server is configured vs the code you're running.

    The fact that you're running it inside an iframe which appears inside a page of your Zen Cart site is entirely irrelevant. Something running from an iframe is completely separate, and subject to its own interaction with the server.

    Best to get support for that code from the author who wrote it.
    .

    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.

 

 

Similar Threads

  1. File upload size problems
    By marknew in forum General Questions
    Replies: 2
    Last Post: 26 Nov 2010, 01:02 AM
  2. CSV File Upload Zen Cart newbie!!!!
    By tonybrown in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 19 Sep 2010, 11:54 AM
  3. File Upload Attribute - File Size Limit?
    By Genevieve in forum General Questions
    Replies: 2
    Last Post: 4 May 2010, 06:33 PM
  4. Restrict Maximum Image upload file size ?
    By greentrees in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 14 May 2009, 03:37 AM
  5. 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

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