login about faq

Background: the application (running in Apache/PHP) already has a file upload facility. However, the allowed file size is just 2MB. The user is uploading an 'important' file but the size is beyond 2MB.

Sure the file upload facility can be increased to accommodate the need. Nevertheless,

(1) Up to how much MB does a regular HTML/PHP file upload can handle? (2) Can it be increased further? Up to how much? (3) What are the impacts of increasing the file size to the server's performance, if there are any? if the server is on the cloud, will these impacts be still noticeable?

Many thanks!

asked Jan 27 '10 at 03:15

shemcristobal's gravatar image

shemcristobal
615212

edited Feb 25 '10 at 16:15

Randell's gravatar image

Randell ♦♦
1.6k1529


1) The default values for PHP will restrict you to a maximum 2 MB upload file size. To change this, you will need to update the properties upload_max_filesize and post_max_size in php.ini.

2) Depends on your setup. For example our hosting at a2hosting restricts up to a maximum of 32MB.

3) You can easily use up your space and bandwidth allocations by allowing huge file uploads. Of course, performance will be affected because it will take the scripts longer time to finish execution. Up to what extent the performance will be affected will probably need detailed testing on your part. Not much experience with cloud computing but in theory, it should be able to handle as much load as you are willing to pay for. :)

link

answered Jan 27 '10 at 04:35

paul_sns's gravatar image

paul_sns
1.7k116

pretty much straight through the question. im not quite sure if you have to edit something on the httpd.conf file too.

(Jan 30 '10 at 13:59) Pogz Ortile Pogz%20Ortile's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×63
×5
×3

Asked: Jan 27 '10 at 03:15

Seen: 765 times

Last updated: Feb 25 '10 at 16:15