Advanced search  

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

Pages: [1]   Go Down

Author Topic: 'Impossible to move file' fix  (Read 3690 times)

0 Members and 1 Guest are viewing this topic.

dleary

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
'Impossible to move file' fix
« on: March 21, 2006, 09:03:43 pm »

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.

Logged
Pages: [1]   Go Up
 

Page created in 0.284 seconds with 20 queries.