如何使用Classic ASP上传文件和其他信息

时间:2013-05-16 15:17:50

标签: web-applications asp-classic

在php中用于从表单上传文件和其他信息的经典ASP的替代方法是什么?

PHP将是

$mime = $dbLink->real_escape_string($_FILES['uploaded_file']['type']);
$file = $dbLink->real_escape_string(file_get_contents($_FILES  ['uploaded_file']

然后使用insert SQL语句

INSERT INTO `Assignment_scripts` (`file` `name``module`)
VALUES ('{$file}', {$date}, '{$mcode}'

那么在经典ASP中这怎么可能呢?我们使用

request.file("uploaded_file") 

获取文件信息?

我确实阅读了一些文章,但他们都说不能用简单的陈述来完成。它需要一个uploader.asp或其他方法来检索二进制代码....

请赐教我这个问题...

非常感谢..

0 个答案:

没有答案