|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
PHP Code:
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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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! |
|
#5
|
|||
|
|||
|
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
|
|
#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.
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
|||
|
|||
|
ThnX kanu,
I restarted and all is fine now, upload_max_filesize is now set to my prefered setting. |
|
#10
|
|||
|
|||
|
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...
![]() |
|
#11
|
|||
|
|||
|
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!
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > File Uploads Max size? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|