upload.asp... any example how would it work...?
Hi,
Browserplus is very impressive. We were looking for some tool to compress files on client-side and then upload to a server, and Browserplus is the solution.
However, uploader 3.2.6 function uses upload.php. Developers that use IIS servers and asp find very difficult to implement.
I tried to change upload.php for upload.asp and get ERROR: permissionDenied
function uploadFiles(e) {
elFile.innerHTML ="Uploading...";
elZip.innerHTML = "";
if (ZippedFiles != null) {
BrowserPlus.Uploader.upload(
{
url: "http://localhost/FreeASPupload/upload.asp",
files: {"file": ZippedFiles}
},
function(res) {
if (res.success) {
elFile.innerHTML ="Uploaded! Result:";
elZip.innerHTML = res.value.body;
} else {
elZip.innerHTML = "ERROR: " + res.error;
}
});
}
return false;
}
If files to transfer are zipped on memory stream, then I think my upload.asp should transfer it:
<!-- upload.asp -->
<%@ Language=VBScript %>
<%
option explicit
Response.Expires = -1
Server.ScriptTimeout = 600
Dim uploadsDirVar
uploadsDirVar = "D:\Prog\FreeASPupload\tempUploads"
Dim Upload, fileName, fileSize, ks, i, fileKey
Set Upload = New FreeASPUpload
Upload.Save(uploadsDirVar)
Response.Write( "Everything is OK!")
%>
I won't post the entirely freeASPUpload code (which is in www.freeaspupload.net), but would be very helpful some guide how to work Browserplus.uploader 3.2.6 with upload.asp.
Thanks.
by
1 Reply