[strange] upload problem! [/strange] [strange] upload problem! [/strange]
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[strange] upload problem! [/strange]

Started by oeteldonker, January 05, 2005, 03:14:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

oeteldonker

hi guys,
i've got this problem, every time i upload a picture, 31 kb, *.jpg i get this error:
The picture I tried to upload is 12.jpg.


The problem isn't really uploading a file, it is more in the final step to move the uploaded picture to a final destination.

as you can see in the error, there's no hash behind  'PIC__'   ?!?!?!

( when i go check in the ftp dir the file in question does have a hash!?!?!? (PIC__3921),  the code just can't seem to find it in the dir?!? )

i don't know how to adjust the code so that upload.php can see the 'PIC__' + Hash.



---------
ERROR
---------

Warning: rename(./albums/edit/PIC__.jpg,albums/userpics/10001/12.jpg):

No such file or directory in /data/members/paid/w/i/wijnmaalen.net/htdocs/www/fotoalbum/upload.php on line 2228

----------
/ERROR
----------

This is the code that comes along:

--------
CODE
--------

                             // Move the picture into its final location
line 2228 ----> ||      if (rename($path_to_image, $uploaded_pic)) {          ||  <---- line 2228

---------
/CODE
---------

And ofcourse my question...

HOW CAN I MAKE IT WORK!!!  >:( >:( >:(
I'M REALLY GOING CRAZY OVER HERE!!

Thnx in advance!

oeteldonker

Joachim Müller

does the edit folder exist, and is it writable for php?

Joachim

oeteldonker

'album' = CHMOD = 777

in fact, i have every file in the 'coppermine folder' set to CHMOD '777'
i don't know if i need is anything else left to do?!

greetz oeteldonker

Joachim Müller

post link and test user account (non admin) please.

Joachim