How to Insert Record and Upload file using the FreeASPUpload Script

和自甴很熟 提交于 2019-11-29 13:04:10

I haven't used AspFreeUpload much so I'm guessing a bit here.

It would appear that using the Request object isn't an option so you're stuck with having to use the Upload.Form. As your code stands, the Upload object is only defined and set within the context of your SaveFiles function.

Try moving your database insert code to within the SaveFiles function. This would mean cutting everything from the line

Dim objConn, objRs

to

InsCom.Execute

and pasting it just before 'End Function'

You may also need to move your include adovbs.inc directive to somewhere before the function was called. The most logical place would be on the line immediately below your other include directive = for uploadclass.asp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!