Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

How Do I Increase The File Upload Size?

Locked
This thread is locked. New replies are disabled.
26 Dec 2007, 5:21 PM
#1
printjuce avatar

printjuce

New Zenner

Join Date:
Dec 2007
Posts:
12
Plugin Contributions:
0

Post #1 by printjuce

I added an file upload option on the product,. small files go threw pefectly,. But when i upload larger files i get this error Warning: File was too large to upload!. How would i change the file upload size that could be permited?

i would guess edit **upload.php ** but since i dont know much of php i dont know what to replace or edit..

My next Question, also how may specified the files that are allowed to upload? for example i would only allowed jpg,gif,png,cdr,pdf,zip,and tiff

so can anyone help me on this one?:huh:

26 Dec 2007, 5:29 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,762
Plugin Contributions:
0

Post #2 by Kim

How large was the file you are trying to upload?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

26 Dec 2007, 5:49 PM
#3
printjuce avatar

printjuce

New Zenner

Join Date:
Dec 2007
Posts:
12
Plugin Contributions:
0

Post #3 by printjuce

It was 7mb..

but i would like to upload up to 10 to 15mb..

26 Dec 2007, 6:10 PM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

Three things:

  • Admin->Configuration->Maximum Values->File upload size
  • PHP configuration: upload_max_filesize
  • PHP configuration: post_max_size

For your PHP configuration, you will likely have to talk to your host to ensure that the values are large enough. You can check the current PHP configuration settings via Admin->Tools->Server Info

.
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.

26 Dec 2007, 6:34 PM
#5
printjuce avatar

printjuce

New Zenner

Join Date:
Dec 2007
Posts:
12
Plugin Contributions:
0

Post #5 by printjuce

DrByte that totaly worked.!!:clap:..lol

thanx alot..

Your a genius..

8 Jan 2008, 1:59 AM
#6
benblee avatar

benblee

New Zenner

Join Date:
Dec 2007
Location:
I wish I was out west!
Posts:
22
Plugin Contributions:
0

Post #6 by benblee

Is the upload size listed in "Configuration/Maximum Values/Maximum File Upload Size" in bytes? Default being "2048000"

I know, dumb question and the answer looks obvious. Just wanted to double check.

Blue Skies!
Ben

30 Jan 2008, 6:07 AM
#7
illum avatar

illum

New Zenner

Join Date:
Jan 2008
Posts:
25
Plugin Contributions:
0

Post #7 by illum

I am having difficult uploading a 4 meg file, even though I changed the admin settings as well as all these settings in both the php.ini and the .htaccess file...

php_value upload_max_filesize "100M"
php_value post_max_size "100M"
php_value memory_limit "16M"
php_value max_execution_time 1200

anyone know what could be going on?

http://www.godlikeprinting.com

30 Jan 2008, 6:15 AM
#8
benblee avatar

benblee

New Zenner

Join Date:
Dec 2007
Location:
I wish I was out west!
Posts:
22
Plugin Contributions:
0

Post #8 by benblee

I am having difficult uploading a 4 meg file, even though I changed the admin settings as well as all these settings in both the php.ini and the .htaccess file...

php_value upload_max_filesize "100M"
php_value post_max_size "100M"
php_value memory_limit "16M"
php_value max_execution_time 1200

anyone know what could be going on?

I can tell you that most hosting companies have a cron task (I think cron is right) set up to re-write the file you probably edited to allow for larger uploads. I want to say that typical upload allowments are between 2MB and 8MB which isn't a lot.

Maybe post who you're hosting with and/or check for a php.ini file that can overwrite on a regular basis.

Sorry if you already knew all this stuff. I'm a beginner and this is one of the roadblocks I hit.

Blue Skies!
Ben

30 Jan 2008, 6:42 AM
#9
illum avatar

illum

New Zenner

Join Date:
Jan 2008
Posts:
25
Plugin Contributions:
0

Post #9 by illum

benblee:

I can tell you that most hosting companies have a cron task (I think cron is right) set up to re-write the file you probably edited to allow for larger uploads. I want to say that typical upload allowments are between 2MB and 8MB which isn't a lot.

Maybe post who you're hosting with and/or check for a php.ini file that can overwrite on a regular basis.

Sorry if you already knew all this stuff. I'm a beginner and this is one of the roadblocks I hit.

I am on a deticated Pentium 4 server, with Superb Hosting, I rechecked the php.ini, everything is still the way I left it.

30 Jan 2008, 11:32 PM
#10
illum avatar

illum

New Zenner

Join Date:
Jan 2008
Posts:
25
Plugin Contributions:
0

Post #10 by illum

switched all these settings in the php.ini

*  file_uploads
* upload_max_filesize
* max_input_time
* memory_limit
* max_execution_time
* post_max_size

as well as the admin settings to let me upload 90 meg files and I can't upload 4-5 meg ones, any know what is going on, seems strange to me in my experience.

30 Jan 2008, 11:39 PM
#11
illum avatar

illum

New Zenner

Join Date:
Jan 2008
Posts:
25
Plugin Contributions:
0

Post #11 by illum

illum:

switched all these settings in the php.ini

*  file_uploads
* upload_max_filesize
* max_input_time
* memory_limit
* max_execution_time
* post_max_size

as well as the admin settings to let me upload 90 meg files and I can't upload 4-5 meg ones, any know what is going on, seems strange to me in my experience.

Fixed... I forgot to restart apache...

...forgetful me...

31 Jan 2008, 1:27 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #12 by ajeh

Thanks for the update! Tips like that are very important to helping folks out on these issues ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!