如何使用asp上传HTML5 单input多文件 |
U4wqxS http://blog.numino.net/ If you have a form which submits multiple values of the same form variable you can separate them as follows. uhz4Ad http://blog.numino.net/ For i = 1 to Request.form("myforminput").Count Iz0pPe http://blog.numino.net/ If Request.form("myforminput")(i) <> "" then BX8VCM http://blog.numino.net/ Response.write Request.form("myforminput")(i) & "<br />" 5FUQa9 http://blog.numino.net/ End if A3cO8E http://blog.numino.net/ Next Flt83l http://blog.numino.net/ It might be worth trying the same approach - ie: V44qZW http://blog.numino.net/ For i = 1 to (objUpload.Form("thefile").value).Count 9IvqH8 http://blog.numino.net/ If (objUpload.Form("thefile").value)(i) <> "" then rR8cEt http://blog.numino.net/ Response.write (objUpload.Form("thefile").value)(i) & "<br />" HfW4Wd http://blog.numino.net/ End if Agd1IE http://blog.numino.net/ Next l8iI0P http://blog.numino.net/ Because there's a third party component involved it may complicate things so I can't guarantee this will work. Check the component's documentation if it is available, particularly with respect to counting the number of files uploaded. HIzsB6 http://blog.numino.net/
|
|