如何使用asp上传HTML5 单input多文件 |
w0r3uE http://blog.numino.net/ If you have a form which submits multiple values of the same form variable you can separate them as follows. rOqRPq http://blog.numino.net/ For i = 1 to Request.form("myforminput").Count 43W5Om http://blog.numino.net/ If Request.form("myforminput")(i) <> "" then 87Tib3 http://blog.numino.net/ Response.write Request.form("myforminput")(i) & "<br />" 5K8HsU http://blog.numino.net/ End if 4oqH7K http://blog.numino.net/ Next cJc9km http://blog.numino.net/ It might be worth trying the same approach - ie: JMr3Em http://blog.numino.net/ For i = 1 to (objUpload.Form("thefile").value).Count Y8lTb4 http://blog.numino.net/ If (objUpload.Form("thefile").value)(i) <> "" then 6jA309 http://blog.numino.net/ Response.write (objUpload.Form("thefile").value)(i) & "<br />" S3iB93 http://blog.numino.net/ End if z0tsuJ http://blog.numino.net/ Next e3i1cW 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. kAGytA http://blog.numino.net/
|
|