Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Edited Unassigned: Corrupted Files in AjaxFileUploader [27655]

$
0
0
I have created a new project and i have follow this steps:

1- Create a new webapplication for VB via Visual Studio 2010 Ultimate
2- Install AjaxControlToolkit 7.1213 via NuGet Packages
3- Add the <httpHandlers> to system.web
4- Create a new aspx page and add the AjaxFileUpload

ASPX File
```
<ajaxToolkit:ToolkitScriptManager runat="Server" />
<ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server" />
```

ASPX.VB file
```
Private Sub AjaxFileUpload1_UploadComplete(sender As Object, e As AjaxControlToolkit.AjaxFileUploadEventArgs) Handles AjaxFileUpload1.UploadComplete
Dim strPath As String = MapPath("~/upload/") + Path.GetFileName(e.FileName)
AjaxFileUpload1.SaveAs(strPath)
End Sub
```

And When a i upload a file this file arrives to the server corrupted if has special chars on this name like º,ª,ã,õ.

Whats is happening??

This is the link with the all project:
[https://dl.dropboxusercontent.com/u/4566444/FileUploadFinalTest.rar](https://dl.dropboxusercontent.com/u/4566444/FileUploadFinalTest.rar)

Thanks, and sorry for my bad English

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>