Pure PHP Upload 2 Support Product Page
DB and File Rename
Reported 15 years ago
1
has this problem
15 years ago 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 years ago
15 years ago 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,
Please, provide info on your DW version as well as your server and workstation OS.
Is the file name starting with "'"?
Regards,
Replied 15 years ago
15 years ago 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 15 years ago
15 years ago 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,
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,