Upload File to Web Server

xiaoxiao2021-03-06  102

1,

System.Web.httppostedFile: httppostedfilesystem.Web.ui.htmlControls.htmlinputFile: htmlinputfile

2,

Path File Name: UploadFile.PostedFile.FileName File Name ----- File Name: String Temp =

Split

(UploadFile.PostedFile.FileName, "/") ----- String FullPath = UPLOADFILE.POSTEDFILE.FILENAME; ----- int pos = fullpath.lastIndexof ("//"); ----- String FileName = FullPath.Substring (POS); ----- UploadFile.postedFile.saveas (NewFilePath NewFileName); File Length: UploadFile.PostedFile.ContentLength File Type: UploadFile.PostedFile.ContentType 3,

转载请注明原文地址:https://www.9cbs.com/read-124285.html

New Post(0)