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.CreateOb ject("SoftArtis ans.FileUp")
Response.Conten tType = "applicatio n/x-msdownload"
Response.AddHea der "Content-Disposition", "attachment;Fil eName=""" &
FileName & """"
oFileUp.Transfe rFile FilePath
I also tried:
Set oFileUp = Server.CreateOb ject("SoftArtis ans.FileUp")
Response.Conten tType = "applicatio n/x-msdownload"
Response.AddHea der "Content-Disposition", "attachment;Fil eName=""" &
FileName & """"
Set oFM = Server.CreateOb ject("SoftArtis ans.FileManager ")
Set oFile = oFM.GetFile(Fil ePath)
Response.AddHea der "Content-Size", oFile.Size
oFileUp.Transfe rFile 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:\se curefiles\" and FileName="testf ile.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