General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old November 27th, 2002, 12:11 PM
Gee Gee is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 61 Gee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
File Uploads Max size?

Hi there,

Anybody know what the max file size can be for uploads using the POST method?

(I want user to be able to upload video over Intranet so bigger the better)

Gee

Reply With Quote
  #2  
Old November 27th, 2002, 12:31 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 6
PHP Code:
 $data ini_get'upload_max_filesize' );
echo 
$data


If you run that it will output what is set in your ini file for maximum file upload size. You can change the value (in most cases) to whatever you need by using ini_set(). Now, remember that you will have to set your script timeout also.

Now, using a form to upload files that are large in size is not recommended as it is a half(you know the other part) way of doing things.

Get familiar with the FTP functions of php and create a web based ftp client....
__________________
~ Joe Penn

We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?

Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.




Reply With Quote
  #3  
Old November 27th, 2002, 12:48 PM
Gee Gee is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 61 Gee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
ThnX,

I am gonna get this up n running first, then I am gonna take your advice and implement an FTP client into the scripts instead of the http_post.

I am taking things one step at a time at the min though cause Ive only just started writing php scripts recently.

Gee

Reply With Quote
  #4  
Old November 27th, 2002, 01:56 PM
Gee Gee is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 61 Gee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Seems that the upload_max_filesize cannot be any bigger than 2M.

does anyone know of a workaround for this that I can use for the time being?

I know it is possible to change this using phps source code, but I didnt install it this way so thats no good for me!

Reply With Quote
  #5  
Old November 27th, 2002, 02:22 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
The 2Mb file size that you are talking about is set in the php.ini file. The only way i know to change this is the edithe the ini file. You will have to talk to your host, if your paying for your hosting. Otherwise if its your own server, you can edit your php.ini and look for max file size

Reply With Quote
  #6  
Old November 27th, 2002, 02:56 PM
Kanu Kanu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 91 Kanu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
If this is in connection with the BLOB tutorial, I am sure there is also a specification in the <FORM> that limits file upload size, so be sure to check that there too.

Reply With Quote
  #7  
Old November 28th, 2002, 12:27 AM
Gee Gee is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 61 Gee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Now I have changed the upload_max_filesize in php.ini,
also for the upload_tmp_dir,

but php does not seem to be reading the php.ini file.
I change it from 2M to 1M but when I test it - php.ini always returns 2M every time.

This is one problem after another.#

PS, none of my forms or scripts have max_filesize restrictions.

Gee.

Reply With Quote
  #8  
Old November 28th, 2002, 03:53 PM
Kanu Kanu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 91 Kanu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Quote:
Originally posted by Gee
Now I have changed the upload_max_filesize in php.ini,
also for the upload_tmp_dir,

but php does not seem to be reading the php.ini file.
I change it from 2M to 1M but when I test it - php.ini always returns 2M every time.

This is one problem after another.#

PS, none of my forms or scripts have max_filesize restrictions.

Gee.
Have you restarted Apache since making the changes?

Reply With Quote
  #9  
Old November 28th, 2002, 04:11 PM
Gee Gee is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 61 Gee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
ThnX kanu,

I restarted and all is fine now, upload_max_filesize is now set to my prefered setting.

Reply With Quote
  #10  
Old November 28th, 2002, 06:54 PM
Kanu Kanu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 91 Kanu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
No problems. You'll often find it's the simplest of things that are the hardest to solve. How often I've missed out just one single ; or } and the whole page falls apart...

Reply With Quote
  #11  
Old November 28th, 2002, 07:29 PM
Gee Gee is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 61 Gee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
LOL - I can relate to that, only the other day I pulled my whole script apart for 2 hours and all I had missed was two dots[b]. .[/] Doh!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > File Uploads Max size?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway