This is a migrated thread and some comments may be shown as answers.

no preview in image browser for filename with symbols

5 Answers 63 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Devlan
Top achievements
Rank 1
Devlan asked on 29 Oct 2008, 08:14 PM
i have an image with the following filename: "~_-box!@#$%^&().jpg"

in the image file manager from the radeditor, i am able to upload this file and see it in the list of files. i can select the file and get back the correct filename. but in the preview pane of the file manager, no image is displayed.

looking at the network traffic, the browser is asking for "~_-box!@".

is there any way to get the file manager to escape filenames?

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 30 Oct 2008, 12:43 PM
Hi Devlan,

The problem is due to the # symbol in the image name. I tried to rename the provided image and Visual Studio poped up the following warning window:

---------------------------
Microsoft Visual Studio
---------------------------
Item and file names cannot:

- contain any of the following characters: / ? : & \ * " < > | # %
- contain Unicode control characters
- contain surrogate characters
- be system reserved names, including 'CON', 'AUX', 'PRN', 'COM1' or 'LPT2'
- be '.' or '..'


Please enter a valid name.
---------------------------
OK  
---------------------------

This means that you should avoid images with names containing these symbols / ? : & \ * " < > | # %.



Best wishes,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Devlan
Top achievements
Rank 1
answered on 30 Oct 2008, 04:33 PM

thanks for the speedy reply :)

'#' is allowed in filenames. so are '&' and '%'.

http://msdn.microsoft.com/en-us/library/aa365247.aspx

i am able to open the file in visual studio, and save it. i can do the same in a number of other image editing programs. i can create new files using these characters.

i was able to upload the file in question using your demo pages for the radeditor. it is in the PublicRelations folder.

and i am able to display the image in a web page once the path has been correctly escaped.

0
Accepted
Rumen
Telerik team
answered on 03 Nov 2008, 04:56 PM
Hi Devlan,

Ok, I agree with you and I logged this issue in our ToDo list.

I just want to show you that VS does not allow the # and % symbols in the file name. Please, see the attached video.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Devlan
Top achievements
Rank 1
answered on 03 Nov 2008, 05:13 PM
thank you :) and sorry, i did believe you got the error, i was just unable to reproduce. i didn't realize you were renaming the file using the solution explorer. i get the same error if i try to do it that way. strange it gives you the error there, but not if you go file -> save as... those wacky people at microsoft...

0
Devlan
Top achievements
Rank 1
answered on 03 Nov 2008, 05:13 PM
thank you :) and sorry, i did believe you got the error, i was just unable to reproduce. i didn't realize you were renaming the file using the solution explorer. i get the same error if i try to do it that way. strange it gives you the error there, but not if you go file -> save as... those wacky people at microsoft...

Tags
Editor
Asked by
Devlan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Devlan
Top achievements
Rank 1
Share this question
or