Re: file upload strange - doesn't appear in filesystem, but can be move_uploaded_file()ed

2009-08-27 Thread brian
Just to add to Dr. Loboto's response, from your question, it seems that you're passing the final destination path to is_uploaded_file(). That will not work, as it expects the tmp name (because it will look in the tmp directory). And, as it's already been moved, the tmp file will have been deleted,

Re: file upload strange - doesn't appear in filesystem, but can be move_uploaded_file()ed

2009-08-27 Thread Dr. Loboto
You should first check by is_uploaded_file() and then move it by move_uploaded_file(). It is the only safe way with PHP. These functions goes through bunch of PHP security restrictions instead of normal file functions. Until move_uploaded_file() called or request finished file is in temp dir with

file upload strange - doesn't appear in filesystem, but can be move_uploaded_file()ed

2009-08-26 Thread MrMeikel
Hi, I haven't done any file upload handling for a long time in php, so maybe I am missing something quite obvious here. I have a simple upload form using the form helper that seems to work. My controller then calls a model function called "data_upload" which is responsible for moving the uploade