D
Dave
Hi Everyone,
I was wondering if anyone has ever successfully used SA-FileUp's download
feature. I am being forced to change from
"ASPSmartUpload" as the server I am moving everything to is using SAFileUp
version 3.2.
I ran through their documentation and found a section called "secure
download", unfortunately, their examples do not work
at all!
On Netscape 7, the file "pretends" to download (after changing the file
extension), but only an empty file is created.
On IE 6, I simply get an Internal Server Error (when calling the
TransferFile method of my object).
Here is the code (verbatim from the documentation):
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
Response.ContentType = "application/x-msdownload"
Response.AddHeader "Content-Disposition", "attachment;FileName=""" &
FileName & """"
oFileUp.TransferFile FilePath
I also tried:
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
Response.ContentType = "application/x-msdownload"
Response.AddHeader "Content-Disposition", "attachment;FileName=""" &
FileName & """"
Set oFM = Server.CreateObject("SoftArtisans.FileManager")
Set oFile = oFM.GetFile(FilePath)
Response.AddHeader "Content-Size", oFile.Size
oFileUp.TransferFile FilePath
(where I retrieve get the file size)
In ASPSmartUpload, I have no trouble what-so-ever with ANY browser I try
using their download feature.
I use the download feature to grab a file that cannot be accessed via a URI,
so simply using the URI is not an option.
I checked and rechecked my variables "FilePath" and "FileName" and they are
exactly correct (if they weren't, I suppose I would have had an error!).
FilePath="e:\securefiles\" and FileName="testfile.zip"
I also monkeyed around with just about every MIME type their is with the
same results.
Here are the specs:
Server: W2K Server SP4
IIS: version 5.0
Anyway, I would just like to simply see an actual, working and tested
example for IE6, NN7.x, and Opera 6 + with
IIS version 5 running on Win2000 Server SP4.
Thanks!
Dave
I was wondering if anyone has ever successfully used SA-FileUp's download
feature. I am being forced to change from
"ASPSmartUpload" as the server I am moving everything to is using SAFileUp
version 3.2.
I ran through their documentation and found a section called "secure
download", unfortunately, their examples do not work
at all!
On Netscape 7, the file "pretends" to download (after changing the file
extension), but only an empty file is created.
On IE 6, I simply get an Internal Server Error (when calling the
TransferFile method of my object).
Here is the code (verbatim from the documentation):
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
Response.ContentType = "application/x-msdownload"
Response.AddHeader "Content-Disposition", "attachment;FileName=""" &
FileName & """"
oFileUp.TransferFile FilePath
I also tried:
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
Response.ContentType = "application/x-msdownload"
Response.AddHeader "Content-Disposition", "attachment;FileName=""" &
FileName & """"
Set oFM = Server.CreateObject("SoftArtisans.FileManager")
Set oFile = oFM.GetFile(FilePath)
Response.AddHeader "Content-Size", oFile.Size
oFileUp.TransferFile FilePath
(where I retrieve get the file size)
In ASPSmartUpload, I have no trouble what-so-ever with ANY browser I try
using their download feature.
I use the download feature to grab a file that cannot be accessed via a URI,
so simply using the URI is not an option.
I checked and rechecked my variables "FilePath" and "FileName" and they are
exactly correct (if they weren't, I suppose I would have had an error!).
FilePath="e:\securefiles\" and FileName="testfile.zip"
I also monkeyed around with just about every MIME type their is with the
same results.
Here are the specs:
Server: W2K Server SP4
IIS: version 5.0
Anyway, I would just like to simply see an actual, working and tested
example for IE6, NN7.x, and Opera 6 + with
IIS version 5 running on Win2000 Server SP4.
Thanks!
Dave