The previous file could not be placed. The previous file could not be placed.
 

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

The previous file could not be placed.

Started by vermelo, July 17, 2009, 12:21:36 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

vermelo

"The previous file could not be placed.

You have successfully placed all the files."

This message appears if I try to upload to gallery a file with a name which already exists in the user's userpics catalog. I use ImageMagick. I know that there are no problems with GD2 but I want to use ImageMagick (better quality, strip function).

I know that the problem came with some new version of CPG a long time ago, now I use 1.4.25. Notice when "The previous file could not be placed." appears: "/include/picmgmt.inc.php Warning line 225: unlink(albums/userpics/10001/thumb_pic1~5.jpg) [function.unlink]: No such file or directory"

I've searched whole forum with the soloution but I didn't find anything.


Thanks for future soloutions

vermelo

I've figured out that the problem is in forbidden characters. "~" is also forbidden, but I don't know, where.

Joe Carver

Start with:

Also, why/how are you using that character anyway?

vermelo

Quote from: i-imagine on July 17, 2009, 04:27:55 PMAlso, why/how are you using that character anyway?
Character "~" will be maked by Coppermine to avoid two files being with the same filename (it is inpossible in one catalog). Like pic.jpg, pic~.jpg, pic~1.jpg, pic~2.jpg...

Some uploaders may use ščžüõöä() characters in filenames and uploader doesn't know that it is inpossible to upload file with this character. The file will be not uploaded.

Joachim Müller

Thanks for your readiness to help. You're right in many aspects, but wrong in the last conclusion:
Quote from: vermelo on July 17, 2009, 05:15:20 PM
Some uploaders may use ščžüõöä() characters in filenames and uploader doesn't know that it is inpossible to upload file with this character. The file will be not uploaded.
That's not true. The file will be uploaded. The forbidden characters will be replaced instead in the file name. If this replacement would result in two identical file names within one folder, the mechanism you explained with the tilde is being applied.

There may be many reasons why the thread starter got the error message "The previous file could not be placed", as that is a generic error message that will be displayed if something went wrong, no matter what actually went wrong. You can't judge from that error message that those issues are related to the file naming scheme. The thread starter (and anybody else who has issues with uploading) should do exactly as i-imagine suggested and read the section of the docs that is named "asking for support on upload issues". That section contains instructions what to do for upload troubleshooting. All other instructions are misleading and just guessing - they lead nowhere.