Hi!
I have a working uploader script called uploader.php.
I need to be able to pass a filename to uploader.php from a device using an http upload table command using a method similar to the following method used in ASP and have uploader then upload the file. There is not an opportunity to search the webserver file system or the device system for the file to be uploaded. Rather, the file exists on the device, and the device uploads it to the webserver.
Any suggestions would be appreciated.
where the webserver is running MS IIS/Active Server Pages , the device makes the http upload table request to a script called ASP_upload.asp shown below:
<!-- #include file="<call your upload component here>" --> ' eg. upload.asp or upload.jsp
<%
Dim Uploader, File,Filesize,Filepath
Filepath="c:\Inetpub\wwwroot\"'directory to upload the file
Set Uploader = New FileUploader
Uploader.Upload()
if Uploader.Files.count=0 then
response.write "File not found"
else
For Each File In Uploader.Files.Items
response.write File.FileName
File.SaveToDisk Filepath
next
response.write "*******uploaded"
end if
%>
Thanks in advance!