move_uploaded_file error

wakaiangel

New member
Joined
Aug 11, 2011
Messages
1
Hello! I'm having a strange error and I couldn't figure out how to solve it. Actually, a friend of mine is having the error. He tries to upload a file to my site and gets this message:

Warning: move_uploaded_file(galeria//tmp/php1Qlgnx) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/coleccion/domains/coleccion.com/public_html/upload2.php on line 86

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php1Qlgnx' to 'galeria//tmp/php1Qlgnx' in /home/coleccion/domains/coleccion.com/public_html/upload2.php on line 86

Warning: imagecreatefromjpeg(galeria//tmp/php1Qlgnx) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/coleccion/domains/coleccion.com/public_html/upload2.php on line 11

He told me earlier that he had a warning about a "pjpeg" file, which is caused by Internet Explorer, so I tried uploading a file with it after fixing the first warning and the file loads fine.

What I noticed that looks the most strange for me are the double slashes "//", I have no idea what does that mean because I can upload files fine

If anyone can help or suggest something it would be really helpful. Thanks in advance!
 
Hello,

Let me begin to say that this foum is ment for DirectAdmin related discussions only, so you're not in the right place here. Please find another forum for these kind of issues.

To point you in the right direction: your paths and namings are all wrong. Your script tries to move the tmp file to galeria//tmp/php1Qlgnx which isn't a valid path. It also doesn't provide the name of the image it should rename it to. Find a php forum and you probably speed things up of you provide them your script so they can tell you whats wrong exactly.
 
Back
Top