Image Uploader

software development

#1

I’m having a problem with my image uploader.
When I try to save an image it will try to save as "upload.php"
I have a feeling it has something to do with the file permissions, but I’m not sure because the upload.php file permission is set at 644. So it’s probably not saving the actual upload.php but somehow that is the default filename when trying to save the images.


#2

In your upload.php script you should be specifying a location that you are saving the uploaded file into. Make sure that the folder you are specifying has the correct permissions (may need 777) in order to save the file.

Should look something like this:
move_uploaded_file($_FILES[‘File’][‘tmp_name’], ‘/tmp/’ . basename($_FILES[‘File’][‘name’])

================================
I’d give my right arm to be ambidexterous!