WebClient.UploadFile
-
I create a txt file which name xx.txt, then I execute the WebClient.UploadFile to upload the file to the server side. The file was uploaded successfully but few lines of header and footer was added to the original context of the file. Please see the example bellow. -----------------------8c8883ecf24ad9e Content-Disposition: form-data; name="file"; filename="xx.txt" Content-Type: application/octet-stream Context of the txt file -----------------------8c8883ecf24ad9e if the uploaded file was jpg, ... format, the system will not be able to reopen the uploaded one because of this header, please advice Nadia Borshek
-
I create a txt file which name xx.txt, then I execute the WebClient.UploadFile to upload the file to the server side. The file was uploaded successfully but few lines of header and footer was added to the original context of the file. Please see the example bellow. -----------------------8c8883ecf24ad9e Content-Disposition: form-data; name="file"; filename="xx.txt" Content-Type: application/octet-stream Context of the txt file -----------------------8c8883ecf24ad9e if the uploaded file was jpg, ... format, the system will not be able to reopen the uploaded one because of this header, please advice Nadia Borshek
I am not sure of what you are expecting. it looks like you need to set the content type properly. well, refer to the following web links for some info on the similar topics. Upload handling http://support.microsoft.com/kb/323246/EN-US/ sample products handling uploads. http://www.iisworks.com/fileman/home.asp
Thanks Harinath India
-
I am not sure of what you are expecting. it looks like you need to set the content type properly. well, refer to the following web links for some info on the similar topics. Upload handling http://support.microsoft.com/kb/323246/EN-US/ sample products handling uploads. http://www.iisworks.com/fileman/home.asp
Thanks Harinath India
-
I am not sure of what you are expecting. it looks like you need to set the content type properly. well, refer to the following web links for some info on the similar topics. Upload handling http://support.microsoft.com/kb/323246/EN-US/ sample products handling uploads. http://www.iisworks.com/fileman/home.asp
Thanks Harinath India