'Impossible to move file' fix 'Impossible to move file' fix
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

'Impossible to move file' fix

Started by dleary, March 21, 2006, 09:03:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dleary

I have experienced an 'impossible to move file' bug, with both coppermine 1.3.1 and 1.4.4.
I use php 4.1.0 on windows.

It only occurs when uploading a file through the form, not for a URI.

The problem:
The relative path of the form "./albums/edit/mHTTP_temp_..." is not working properly for the later call of move_uploaded_file()

The fix:

Find the first location of '$path_to_image = ...' in upload.php
This is on line 1210 for cpg144

make it read:  '$path_to_image = dirname(__FILE__) . ...'

I have attached a unified diff, but it's only one line.