Re: [PHP] Upload problems
With apache, check out the php.conf file located at: /etc/httpd/conf.d and modify it to be: SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 838860800 That'll allow a full CD worth of information to be uploaded... :) Robert raditha dissanayake wrote: Dennis Gearon wrote: Would you mind sharing what it was so that it hits the archives and a few 'enquiring minds'? it probably was the LimitRequestBody apache directive which is set to 512 Kb in some 'out of the box' installations. -- Robert Sossomon, Business and Technology Application Technician 4-H Youth Development Department 200 Ricks Hall, Campus Box 7606 N.C. State University Raleigh NC 27695-7606 Phone: 919/515-8474 Fax: 919/515-7812 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload problems
Dennis Gearon wrote: Would you mind sharing what it was so that it hits the archives and a few 'enquiring minds'? it probably was the LimitRequestBody apache directive which is set to 512 Kb in some 'out of the box' installations. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Upload problems
Would you mind sharing what it was so that it hits the archives and a few 'enquiring minds'? "Pablo Gosse" <[EMAIL PROTECTED]> wrote: [snip] Look in your php.ini for max_upload_size or something like it. [/snip] 'Twas an apache problem. Thanks the help. Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Upload problems
[snip] > Look in your php.ini for max_upload_size or something like it. [/snip] 'Twas an apache problem. Thanks the help. Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Upload problems
[snip] > What's the upload_max_filesize set to in your php.ini ? Under "File > Uploads" in the php.ini, you will find this value. [/snip] That's not it. That's set to 30M. This domain was just transferred over to a new server, and this problem did not exist on the old one, so while I am pretty certain it's something on the server side, I thought I'd throw it out in case anyone else might have run up against this. Thanks, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload problems
Ave, What's the upload_max_filesize set to in your php.ini ? Under "File Uploads" in the php.ini, you will find this value. Junkie On 10/5/04 4:33 PM, "Pablo Gosse" <[EMAIL PROTECTED]> wrote: > Hi, folks. I'm running into a strange upload problem and am not sure if > it's a php or apache issue. > > I can't seem to upload any files bigger than 511k. 511k will upload > fine, but 512k returns a "Document contains no data" error. > > I've tried this with a text file, adding and removing lines until it > uploaded and wouldn't upload. > > I've also tried multiple file formats, and it's the same for all. > > Has anyone run into this before? I thought it might be a problem with > the LimitRequestBody directive in the apache config file, but that > directive is not used anywhere in the file. > > Any ideas? > > Cheers and TIA, > > Pablo > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Upload problems
[snip] Hi, folks. I'm running into a strange upload problem and am not sure if it's a php or apache issue. I can't seem to upload any files bigger than 511k. 511k will upload fine, but 512k returns a "Document contains no data" error. I've tried this with a text file, adding and removing lines until it uploaded and wouldn't upload. I've also tried multiple file formats, and it's the same for all. Has anyone run into this before? I thought it might be a problem with the LimitRequestBody directive in the apache config file, but that directive is not used anywhere in the file. Any ideas? [/snip] Look in your php.ini for max_upload_size or something like it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload problems
On Sunday 15 August 2004 23:14, Rosen wrote: > I try to upload a .zip file via PHP. I change directive > "upload_max_filesize = 500M". > The first file is about 5 MB and no problems with upload. > The second file is about 17 MB and script doesn't do nothing - no upload :( Have you read the chapter "manual > Handling file uploads" thoroughly? In particular the section "Common Pitfalls"? Also the archives have alot of info on this type of problem. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Never be led astray onto the path of virtue. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload problems
Rosen wrote: Hi, I try to upload a .zip file via PHP. I change directive "upload_max_filesize = 500M". The first file is about 5 MB and no problems with upload. The second file is about 17 MB and script doesn't do nothing - no upload :( Can someone help with this ? upload_max_filesize setting alone will not do because there are several other settings that need to be considered. These are discussed at http://www.radinks.com/upload/config.php (shameless plug). -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload problems
If you go to the PHP site they have a nice section on file uploads: http://us2.php.net/features.file-upload Double check that $_FILES['cat1_thumb']['error'] == 0 See: http://us2.php.net/manual/en/features.file-upload.errors.php -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload problems
Does the form contain ? Doug Parker wrote: I'm trying to do some uploading on my server, and I'm not getting any value for my "tmp" upload setting - meaning this code: $source = $_FILES['cat1_thumb']['tmp_name']; echo $source; returns nothing. The form is fine - meaning that the text input name is correct and I am indeed selecting a file. I realized that our upload_tmp_dir setting was not set, so I had the admin set it, but it still returns nothing. Is there another setting I should check? Thanks -- http://www.phreshdesign.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload problems - "unable to open 'none'
>Send us a copy of your script so that we can help. Odds are that you didn't >specify the proper field name in your upload form. > >-Original Message- >Now I'm getting this error each time I upload a file... > >Warning: Unable to open 'none' for reading: No such file or directory >in /home/.../upload3.php on line 7 > >why is it saying 'none' ?? 'none' is what you get if they don't pick any file to upload... Or if the file was too big? I forget exactly how/when you get 'none' and '', but 'none' means something different than ''. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] upload problems - "unable to open 'none'
I'll have to test, but I think the $filename = "/tmp/".$userfile is what's messing things up. $userfile is a link to the temporary file the system creates when storing the uploaded file. The link includes a full reference to the file name as well as the system directory path to the file. Appending /tmp/ in front of this creates an invalid path for $filename. Create a $filename as a valid path and file name. Use the move function to move from $userfile to $filename. That way you don't end up with an extra left over file wasting drive space. Try that and lemme know how it goes =) -Ed -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] upload problems - "unable to open 'none' Here is the code. $userfile is the name of the upload field. I doubled checked the HTML and everything is fine with it. hey man, thanks for all your help!! $filename = "/tmp/".$userfile; if (!copy($userfile, $filename)) { echo "something barfed."; exit; } else { echo "uploaded."; } >>> "Lazor, Ed" <[EMAIL PROTECTED]> 07/02/02 04:38PM >>> Send us a copy of your script so that we can help. Odds are that you didn't specify the proper field name in your upload form. -Original Message- Now I'm getting this error each time I upload a file... Warning: Unable to open 'none' for reading: No such file or directory in /home/.../upload3.php on line 7 why is it saying 'none' ?? This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.
RE: [PHP] upload problems - "unable to open 'none'
Send us a copy of your script so that we can help. Odds are that you didn't specify the proper field name in your upload form. -Original Message- Now I'm getting this error each time I upload a file... Warning: Unable to open 'none' for reading: No such file or directory in /home/.../upload3.php on line 7 why is it saying 'none' ?? This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php