TomatoCart

65381 Downloads
328 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

What is the Max Upload Size for Downloadable Product?
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: What is the Max Upload Size for Downloadable Product?
*
#2124
What is the Max Upload Size for Downloadable Product? 1 Year, 6 Months ago Karma: 0
Hi All,

What is the Max Upload Size for Downloadable Product?

Can I Increase the Size?

How?
prasen
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2132
Re: What is the Max Upload Size for Downloadable Product? 1 Year, 6 Months ago Karma: 29
The max upload size for downloadable product is set in the php.ini file, normally is 2MB. You have to increase it in the web host configuration panel.
zheng.lei
Team Member
Posts: 462
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2452
Re: What is the Max Upload Size for Downloadable Product? 1 Year, 6 Months ago Karma: 1
Hello folks,

I was setting up my store and kept getting error on my downloadable product while it tried to upload to the download file folder. So, I sent a "mini" zip file of the same name to the server. Once there I copied the name the cart had assigned to the file, to the real zip and sent to the server via FTP program.

I thought this would work, I had someone try it out purchased the product, he got the download link for it but it wouldn't download to disk. When I used the tomatocart admin file manager I could download the file but it didnt come out in zip formula. My products are anything upto 110MB files, so what do I do?

The first product I loaded thou didnt error just all the ones after that one....

And the php.ini file ? where is that one located I have unlimited bandwith etc on my host so not sure where or how big an upload file would allow.

I am no rocket scientist when it comes to this stuff, but from what I got done so far I am loving the Tomatocart.

Then of course the issue with, Paypal IPN I read and did the "0" "1" thingy posted, and what is the IPN return code that we put into the actual Paypal account itself or do we disable that as cart use's the API?

Thanks for any help,
Ian Dodd
Tigertrains.com
Tigertrains
Senior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Tigertrains.com
The administrator has disabled public write access.
 
#2484
Re:What is the Max Upload Size for Downloadable Product? 1 Year, 6 Months ago Karma: 1
Okay I figured this part out, I have sent two files so far to my server via the Admin upload. One file was 11MB the other 7MB, my server allowed in the phpinfo a 2MB file limit. But, I found a neat little article on the web:

Most of the web servers are configured such a way that a user can only upload the maximum file size of 2MB. So there might be the problem for the people who wants to upload the .pdf file of size around 15MB. But, you can increse the maximum upload file size limit by using .htaccess file.


Here is a small tips for you which you can use to upload such a large file using file field of the form and move_uploaded_file() function in PHP.

1) Create a .htaccess file in the root folder of web server.

2) Put the following code in side the .htaccess file and save it.

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200

Now you can upload the file-size up-to 20MB in a simple way using file field in your html form and move_uploaded_file() function available in PHP. In the above .htaccess file, uploading capability is increased by the four parameter first one is maximum file size for uploading, second one is maximum size of the post data , third one is maximum time in seconds a script is allowed to run before it is terminated by the parser and last one is maximum time in seconds a script is allowed to parse input data such as like file uploads, POST and GET data.

You can change the above parameter to upload the bigger file size than 20MB.


So I did this and it worked, but I also added them lines to the .htaccess file in the Tomatocart main root area (Just to make sure), but I didnt get any (error x) messages from the admin panel when uploading, and checking the server files I see my downloads are in there in full glory.

NOW to see if I can retreive them without the issue of "invalid" file type archive. Okay went to product clicked on the zip file to open and got the download and the zip file WORKED awesome!!!
Tigertrains
Senior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Tigertrains.com
Last Edit: 2010/08/12 19:23 By Tigertrains.
The administrator has disabled public write access.
 
#2509
Re:What is the Max Upload Size for Downloadable Product? 1 Year, 6 Months ago Karma: 1
On this issue, I found that the code above when I set it, did not work for anything larger than 20MB the zip test would come back "empty" .

I am not sure if it was because my .htaccess on the main site, already had some coding in. The system may have been detecting something different, so I put a new .htaccess in with the following from another site:

php_value upload_max_filesize 200M
php_value post_max_size 200M
php_value memory_limit 200M

I uploaded a 31.5mb file and tested the return link in the admin products, and got the zip back "Complete" .
Tigertrains
Senior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Tigertrains.com
The administrator has disabled public write access.
 
#2519
Re:What is the Max Upload Size for Downloadable Product? 1 Year, 6 Months ago Karma: 1
Well back to the drawing board, it wont allow my 75mb files and if i copy and move to the download file via ftp, then try to download to test in product interface they come back "blank" zip. So not sure whats going on with this part of it now
Tigertrains
Senior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Tigertrains.com
The administrator has disabled public write access.
 
Go to top Page: 123

Latest Blog Post

TomatoCart v2.0 – An open source ecommerce framework

Since the TomatoCart v1.0’s framework getting old and the core is not a pure MVC design, it causes many troubles ...

Blog | Administrator | Saturday, 21 January 2012

More in: About Us

-
+
3

contact_us

TomatoCart
+86-13771170725
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Verification Code:
Captcha

Receive HTML?