Hello,
I've made an upload script so people can post their photo on my site but i'm currently facing a problem.
The script displays no error and return the name of the tmp file but the file has not been written.
/tmp is empty of php generated files. :/
php.ini Upload config :
Code:
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp/
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
;Maximum size of POST data that PHP will accept.
post_max_size = 8M
/tmp permissions :
Code:
drwxrwxrwt 15 root root 4096 2004-08-14 13:57 tmp
Nothing in apache error log or php log
Apache is not chrooted and runs as www-data.
So for sure I get an error when trying to create an image from the tmp file.
...