coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: oeteldonker on January 05, 2005, 03:14:35 AM

Title: [strange] upload problem! [/strange]
Post by: oeteldonker on January 05, 2005, 03:14:35 AM
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
Title: Re: [strange] upload problem! [/strange]
Post by: Joachim Müller on January 05, 2005, 04:05:00 PM
does the edit folder exist, and is it writable for php?

Joachim
Title: Re: [strange] upload problem! [/strange]
Post by: oeteldonker on January 05, 2005, 04:41:39 PM
'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
Title: Re: [strange] upload problem! [/strange]
Post by: Joachim Müller on January 07, 2005, 11:53:17 AM
post link and test user account (non admin) please.

Joachim