Use Request.Files in Classic ASP

妖精的绣舞 提交于 2019-12-23 04:56:31

问题



I want to use dhtmlx vault control for file upload in classic asp. I've used his control in ASP.NET & it works well. But in classic ASP, I'm not able to get files using Request.Files. Can anyone help me for this.

The code I'm using for file upload is:

                            var conf = {
                            container: "vaultObj",
                            uploadUrl: "vaultupload.asp",
                            autoStart: false,
                            skin: "dhx_skyblue"
                            };     

                           var myVault = new dhtmlXVaultObject(conf);

vaultupload.asp is the file on which I want to write code to upload images. But I'm not able to use Request object there. Do I have to include any assembly for that?

Thanks


回答1:


file uploads are tricky in Classic ASP. One option is to install a third party component like Persits ASP Upload or ABC Upload.

A popular solution is freeaspupload which uses a class file which you just upload to your server, you don't need to install anything. It uses an ADODB stream object. It used to be available an freeaspupload.net, but that site seems to be down at the moment, however the internet archive is your friend

https://web.archive.org/web/20140517095226/http://freeaspupload.net/



来源:https://stackoverflow.com/questions/26077411/use-request-files-in-classic-asp

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