Pure PHP Upload 2 Support Product Page

DB and File Rename

Reported 12 Mar 2010 04:49:24
1
has this problem
12 Mar 2010 04:49:24 Chris S posted:
Hello. My scripting skills are weak so forgive if there is a simple correction. When a user uploads a file with an ' symbol in the filename it is renamed and recorded as _ in the DB but the symbol in the file name is renamed as \_

Any ideas on how to correct issue?
Edited by - chris Mr. on 12 Mar 2010  04:50:28

Replies

Replied 15 Mar 2010 11:51:36
15 Mar 2010 11:51:36 Miroslav Zografski replied:
Hello Chris,

Please, provide info on your DW version as well as your server and workstation OS.
Is the file name starting with "'"?

Regards,
Replied 19 Mar 2010 23:54:54
19 Mar 2010 23:54:54 Chris S replied:
Hello. I am using CS4. Site is using MySQL 5 Database Server and PHP 5. The issue is a user will upload a document for example named "natures's fury.pdf". The script converts the "'" to an underscore "natures_s fury.pdf" in the DB but renames the the file with a backward slash and underscore "natures\_s fury.pdf"
Replied 29 Mar 2010 10:34:45
29 Mar 2010 10:34:45 Miroslav Zografski replied:
Hello Chris,

I was unable to recreate your issue. It will be of help if you provide the upload page so I can check exactly what you have there which I guess will help me recreate the problem.

Regards,

Reply to this topic