Version: AJAX 2012 Q2 912
Browser: FF 15.0.1
Using the DBContentProvider to store the files on a MSSQL server.
When I'm downloading the file it cuts the name up to the first white space.
For example:
Jenny Baxter PDP #4.pdf --> Jenny.pdf
Browser: FF 15.0.1
Using the DBContentProvider to store the files on a MSSQL server.
When I'm downloading the file it cuts the name up to the first white space.
For example:
Jenny Baxter PDP #4.pdf --> Jenny.pdf
4 Answers, 1 is accepted
0
Hi Ricardo,
The path to a specific file in FileExplorer is passed in the URL and the control uses a GenericHandler (.ashx file that handles the files) to decode the path before it is used (and the white spaces are not among the allowed URL characters). This is why you need to avoid the using of any reserved symbols (including #, ?, etc.) in the name of the files.
More detailed information is available in the following W3C article: Reserved characters.
Regards,
Vesi
the Telerik team
The path to a specific file in FileExplorer is passed in the URL and the control uses a GenericHandler (.ashx file that handles the files) to decode the path before it is used (and the white spaces are not among the allowed URL characters). This is why you need to avoid the using of any reserved symbols (including #, ?, etc.) in the name of the files.
More detailed information is available in the following W3C article: Reserved characters.
Regards,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ricardo
Top achievements
Rank 2
answered on 31 Oct 2012, 06:53 PM
Vesi,
We are now avoiding reserved characters, but the issue remains and it just affects FireFox 15
IE8 does not show the issue.
Example:
IE8: OK
Juan Minh 36.pdf --> Juan Minh 36.pdf
FF15: NOK
Juan Minh 36.pdf --> Juan.pdf
Not sure why FF15 is cropping the file name.
We are now avoiding reserved characters, but the issue remains and it just affects FireFox 15
IE8 does not show the issue.
Example:
IE8: OK
Juan Minh 36.pdf --> Juan Minh 36.pdf
FF15: NOK
Juan Minh 36.pdf --> Juan.pdf
Not sure why FF15 is cropping the file name.
0
Hi Richardo,
The successful reading of an URL containing blank spaces is a browser behavior and we cannot control it. This is why when a browser is not able to handle such URL, FileExplorer receives the part of the name, which is readable for the specific browser.
The only workaround I could suggest you is to implement a custom logic, which is encrypting the file's name by replacing the white spaces and then decrypting it when the file is being downloaded.
Kind regards,
Vesi
the Telerik team
The successful reading of an URL containing blank spaces is a browser behavior and we cannot control it. This is why when a browser is not able to handle such URL, FileExplorer receives the part of the name, which is readable for the specific browser.
The only workaround I could suggest you is to implement a custom logic, which is encrypting the file's name by replacing the white spaces and then decrypting it when the file is being downloaded.
Kind regards,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ricardo
Top achievements
Rank 2
answered on 05 Nov 2012, 04:12 PM
After a few hours looking into the issue I was able to make it work with FF.
I just need to modify the handler.ashx file when posting the file back to the browser.
The only set back is the '#' sign on IE8. FF15 works fine but IE make the '#' to '_' as I show below:
FF15:
Jenny Baxter PDP #4.pdf --> Jenny Baxter PDP #4.pdf (Working!!!)
IE8
Jenny Baxter PDP #4.pdf --> Jenny Baxter PDP _4.pdf (Almost!!!)
Not perfect but I'm happy with this so far.
I just need to modify the handler.ashx file when posting the file back to the browser.
The only set back is the '#' sign on IE8. FF15 works fine but IE make the '#' to '_' as I show below:
FF15:
Jenny Baxter PDP #4.pdf --> Jenny Baxter PDP #4.pdf (Working!!!)
IE8
Jenny Baxter PDP #4.pdf --> Jenny Baxter PDP _4.pdf (Almost!!!)
Not perfect but I'm happy with this so far.