Does a file exist? Or is the user being evil?
Posted: Sun Oct 01, 2006 9:04 am
Can anyone suggest a solution to the file upload problem i'm having at the moment. I'm standard HTML forms (with $_FILE) to upload images for a gallery.
Problem - I need to check that the file is actually where before it's added to the database. I'm thinking that I could check the size of the temporary file on the server (after upload) and checking the size. Since a 0 size file is going to be a bogus file.
Any thoughts?
Problem - I need to check that the file is actually where before it's added to the database. I'm thinking that I could check the size of the temporary file on the server (after upload) and checking the size. Since a 0 size file is going to be a bogus file.
Any thoughts?