|
Posted by Cam on 12/20/06 08:14
Cam wrote:
> Hello group, I am new. I have a question that may be relatively easy
> for someone to answer I hope.
>
> I am running lighttpd on xp with php, perl etc. I am attempting to
> teach myself PHP by going through the turoials on W3Schools.com. So
> far it has been no problem and fun but I have recently hit a snag when
> going through page. http://www.w3schools.com/php/php_file_upload.asp
>
> The premise is it shows you how to select a file (restricted to jpg or
> gif and file size of less than 20kb), and moves it to an /upload/
> folder on the test server. If it is not a jpg or gif an larger than >
> 20kb it should give an error.
>
> It works fine when uploading the small files, however when i am testing
> it with a larger file image 100k or more the server seems to freak out.
> The lighttpd error log shows this
>
> (connections.c.1069) denying upload as opening to temp-file for upload
> failed: /var/tmp/lighttpd-upload-2AGhiX No such file or directory
>
> Firefox gives me 'The connection has been reset' message.
>
> I am thinking there is maybe a setting in php.ini I should check? Not
> sure, any ideas would be helpful. Thanks.
I missed the main point, I was testing sending a larger than allowed
file to see if the error message "Invalid file" is displayed, it does
not when the file is huge. But the invalid file message does display
if it is not a proper extension.
[Back to original message]
|