Version 7.0429 AJAX Control Toolkit
AjaxFileUpload Control
protected void AjaxFileUpload1_OnUploadComplete(object sender, AjaxFileUploadEventArgs file)
{
AjaxFileUpload1.SaveAs(MapPath("~/App_Data/" + file.FileName));
}
The Uploaded File : *.zip, *.txt ==> file can open
The Uploaded File : *.doc, *.xls ..etc ==> file can't open, display "file is damaged",why?
Comments: english file name, test ok! chinese file name, open the file, display "file is damaged" ex: The Uploaded File : 我的檔案.doc ==> file can't open, display "file is damaged"
AjaxFileUpload Control
protected void AjaxFileUpload1_OnUploadComplete(object sender, AjaxFileUploadEventArgs file)
{
AjaxFileUpload1.SaveAs(MapPath("~/App_Data/" + file.FileName));
}
The Uploaded File : *.zip, *.txt ==> file can open
The Uploaded File : *.doc, *.xls ..etc ==> file can't open, display "file is damaged",why?
Comments: english file name, test ok! chinese file name, open the file, display "file is damaged" ex: The Uploaded File : 我的檔案.doc ==> file can't open, display "file is damaged"