Jump to content

Mysql, file upload weird spacing/line break issue


eatadi

Recommended Posts

Hey all,

 

I am using flash and php to upload files to a server as well as enter the file name to a mysql database. The strange thing is that I rename the file upload to the new id entered to the database as well as append "_resume.txt" to the end. For some strange reason in the database the field is stored with a bunch of white spaces inbetween the userid and _resume.txt. So for example the file being uploaded is renamed to 100021_resume.txt but I get 100021                        _resume.txt in the database and on the server.

 

I've used trim, string replace all kinds of things on both the flash and php side? I have no clue what else to try.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.