S
superplayboy
Unregistered / Unconfirmed
GUEST, unregistred user!
远程使用ASP接收文件并保存,用HTML文件提交测试过没问题
现在的问题是不知道如何指定上传数据的名称
ms:=tmemorystream.create;
ms.loadfromfile('1.txt');
httpcli1.ContentTypePost:='multipart/form-data';
httpcli1.SendStream:=ms;
httpcli1.url:='http://localhost/upload.asp';
httpcli1.post;
ASP代码:
set upload=new upload_5xSoft
set file1=upload.file("UPLOADFile") '提示这里提交的UPLOADFile为空,缺少对象
file1.saveAs server.mappath('3.txt')
......
我知道是没指定上传名称“UPLOADFile”,但是不知道如何指定上传的数据MS就是UPLOADFile
现在的问题是不知道如何指定上传数据的名称
ms:=tmemorystream.create;
ms.loadfromfile('1.txt');
httpcli1.ContentTypePost:='multipart/form-data';
httpcli1.SendStream:=ms;
httpcli1.url:='http://localhost/upload.asp';
httpcli1.post;
ASP代码:
set upload=new upload_5xSoft
set file1=upload.file("UPLOADFile") '提示这里提交的UPLOADFile为空,缺少对象
file1.saveAs server.mappath('3.txt')
......
我知道是没指定上传名称“UPLOADFile”,但是不知道如何指定上传的数据MS就是UPLOADFile