PDA

View Full Version : special characters


msoo
6th of March 2004 (Sat), 17:05
Just found a bug in the FTP upload code. Seems that anything with special characters such as apostrophe, " ' " will have problems being uploaded. You might want to change the FTP code to strip off all such special characters.

Now, I know you are already stripping off spaces and changing them to underscore. I think you might want to include other special characters if it is a concern.

- MS

msoo
6th of March 2004 (Sat), 17:09
I also noticed that if an upload fails, it will still load an entry in the database for the failed upload. Is that normal? Typically, if an upload fail, I'll try to upload the image again, causing duplicate entries to show up...which is bad...


- MS

Pekka
6th of March 2004 (Sat), 17:26
Just found a bug in the FTP upload code. Seems that anything with special characters such as apostrophe, " ' " will have problems being uploaded. You might want to change the FTP code to strip off all such special characters.

Now, I know you are already stripping off spaces and changing them to underscore. I think you might want to include other special characters if it is a concern.

- MS

Thanks. I thought I had that fixed but apparently it was lost somewhere... :)

Pekka
6th of March 2004 (Sat), 17:29
I also noticed that if an upload fails, it will still load an entry in the database for the failed upload. Is that normal? Typically, if an upload fail, I'll try to upload the image again, causing duplicate entries to show up...which is bad...


- MS

Yes, EE adds to database even if some uploads fail because there is always a chance you may want to replace photos manually. You have always option to autohide uploaded photos and in copy/move/delete editor you can delete unwanted photos without attempting to delete photo files at all (very fast).

I will do a new upload scheme in 1.51. which will log problem files/sizes and let you retry them.