Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
JFRanger  
#1 Posted : Friday, July 20, 2007 4:41:58 AM(UTC)
JFRanger

Rank: Member

Groups:
Joined: 4/13/2007(UTC)
Posts: 6

As you know in the french language world some people name there folder with special characters such as (é,è,à,ê,ç)

So i'm now having the error "Can't open file for writing" when my users upload there images with this:
objThumbnail1File.Save Server.MapPath("D:\Data_web\albums\école\")

But it is working fine if there is no special characters;
objThumbnail1File.Save Server.MapPath("D:\Data_web\albums\ecole\")

Any suggestions?
//JF//
Alex Makhov  
#2 Posted : Friday, July 20, 2007 8:51:20 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups:
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

Image Uploader processes all special characters correctly. The problem is on server side, I don't understand why the name with special characters causes error in ASP.NET. You can try to use System.IO.Path.GetInvalidPathChars method to check which exactly chars causes the problem.

Edited by user Friday, February 22, 2008 11:19:50 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.