Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > increasing upload_max_filesize

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-07, 04:58
teenastpl teenastpl is offline
Registered User
 
Join Date: Sep 2007
Posts: 4
increasing upload_max_filesize

hi,

I am trying to increase the upload_max_filesize in the remote linux server with the help of .htaccess file.It worked and I increased it to 4M but while I tried to upload a file of 3.2MB the page expired.

I have increased the max_execution_time to 300 seconds but still not getting the problem solved.

Can anybody provide me some good solution???
Reply With Quote
  #2 (permalink)  
Old 11-06-07, 11:48
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 734
Have you specified the upload size in the html form as well? The is specified in bytes i think, so the below sets to 100Kb

Code:
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />

Also if you run phpinfo(); do you see the maximum upload file size specified in the configuration?
Reply With Quote
  #3 (permalink)  
Old 11-07-07, 01:14
teenastpl teenastpl is offline
Registered User
 
Join Date: Sep 2007
Posts: 4
Yeah it is there

Thanks!!

The changes are already being reflected in the configuration setting i.e the phpinfo() ,but page expires after 2-3 minutes.Is there anything in the linux server's setting that is causing the problem??
Reply With Quote
  #4 (permalink)  
Old 11-07-07, 05:16
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 734
Could be a timeout issue with either PHP or Apache.
I believe both have settings, and it sounds like you've set the PHP one to 5 minutes (max_execution_time 300).
Try using the function set_time_limit(int seconds) in your PHP as well and see if that'll extend it. 5 minutes is a long time to wait for a file upload though...
Check your apache for the following : LimitRequestBody <value>
This will restrict uploaded content to a certain size from a single connection request.
Also check the TimeOut directive in Apache. You may find it limited to 60 seconds or slightly more (not enough). Make this large for larger file uploads.

Are you trying to upload multiple files at once or just the one?
Have you had success with smaller files?
Is there a restriction on the filesize for tmp files? i.e. are you reaching a space quota?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On