Jump to content

move_uploaded_file no error problem


pokermagic

Recommended Posts

I am allowing users to upload images to our website and am having a problem with my code and i'm not sure what the error could and wanted some suggestions.  My code is below but the error is that it tells me "There was an error uploading the file, please try again!", however when i test what the error is <?php echo $_FILES['filefieldname']['error'] ?> the result is 0, Value: 0; There is no error, the file uploaded with success... but the image never is uploaded.  Could this be a permissions problem.  It works perfectly on my local test machine, but not on my server.

 

I'm not a PHP person but more JSP so any help is appreciated.

 

attached is my file as well.

 

Thanks in advance.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/151175-move_uploaded_file-no-error-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.