File name should not contains ',' sign


As far as I understand file name shouldn't contains ',' sign - it will leads to exception when server side parse data from the client side.
IMHO you can easily fix it by using URLEncode(fileName) on client side and URLDecode(fileName) on server side.
Thank you!
Closed Sep 12, 2011 at 9:52 PM by hyspdrt


hyspdrt wrote Sep 12, 2011 at 8:38 PM

Thanks for the recommendation, where is it that the file name contains a comma?

MagicMax wrote Sep 12, 2011 at 8:53 PM

well, for example, I want to upload to the server one file named "100,000 dollars.txt" (you can try it by yourself - it's easy to reproduce) - it will leads to exception. But if i will upload file named as "100 000 dollars.txt" it will be uploaded successfully. The reason of exception is in the separator - ",". You're using it (I'm talking about "," sign) when on server side you want to get file name, date and metadata from the base64 encoded string in the URL. And if file name contains "," your control decides that it's a separator and it leads to exception in the upload process...

wrote Sep 12, 2011 at 9:48 PM

wrote Sep 12, 2011 at 9:52 PM

Resolved with changeset 69725.

hyspdrt wrote Sep 12, 2011 at 9:54 PM

Thanks for letting us know, we will add that to our unit tests.

MagicMax wrote Sep 13, 2011 at 8:40 AM

Thank you very much!

Also I'd like to say thank you for your application - it's very helpful for any Silverlight developer!

hyspdrt wrote Sep 13, 2011 at 5:04 PM

We appreciate the kind words, and the opportunity for improvement.


wrote Feb 14, 2013 at 6:39 PM

wrote May 16, 2013 at 8:40 AM