如何使用asp上传HTML5 单input多文件 |
3uI0xe http://blog.numino.net/ If you have a form which submits multiple values of the same form variable you can separate them as follows. xsAy8w http://blog.numino.net/ For i = 1 to Request.form("myforminput").Count brJXze http://blog.numino.net/ If Request.form("myforminput")(i) <> "" then y0ko93 http://blog.numino.net/ Response.write Request.form("myforminput")(i) & "<br />" j89BnZ http://blog.numino.net/ End if UvNUCr http://blog.numino.net/ Next YJtET9 http://blog.numino.net/ It might be worth trying the same approach - ie: 9EPatx http://blog.numino.net/ For i = 1 to (objUpload.Form("thefile").value).Count AKvD2Y http://blog.numino.net/ If (objUpload.Form("thefile").value)(i) <> "" then gkDa8C http://blog.numino.net/ Response.write (objUpload.Form("thefile").value)(i) & "<br />" pxWURC http://blog.numino.net/ End if M7BDKL http://blog.numino.net/ Next 9NB8uj 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. RN0U4u http://blog.numino.net/
|
|