问题
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