B
Big George
With ASP.NET 1.1, now I realized that copying a file to a webserver
folder is not possible with this code:
strFileNameOnly="MyFile.doc"
strImgFilePath=Server.MapPath("../temp/")
HtmlInputFile.PostedFile.SaveAs(strImgFilePath + strFileNameOnly)
It's not possible when IE7/8 has option "Include local directory path
when uploading files to a server" disabled in the Internet Zone. You
get error:
"Could not find a part of the path"
If that option is enabled, then HtmlInputFile.PostedFile.SaveAs works.
How could I save files to a virtual directory folder on webserver
when option "Include local directory path when uploading files to a
server" is disabled?
Thanks!
folder is not possible with this code:
strFileNameOnly="MyFile.doc"
strImgFilePath=Server.MapPath("../temp/")
HtmlInputFile.PostedFile.SaveAs(strImgFilePath + strFileNameOnly)
It's not possible when IE7/8 has option "Include local directory path
when uploading files to a server" disabled in the Internet Zone. You
get error:
"Could not find a part of the path"
If that option is enabled, then HtmlInputFile.PostedFile.SaveAs works.
How could I save files to a virtual directory folder on webserver
when option "Include local directory path when uploading files to a
server" is disabled?
Thanks!