for some reason they get corrupted during the file transfer and Acrobat can't open them. They download just fine if you navigate directly to the file itself...
Thru this script I get the following error in Acrobat:
quote:
Acrobat could not open 'filename.pdf' because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasn't correctly decoded).
Any ideas?
_____________________________
If con is the opposite of pro, is Congress the opposite of progress?
Posts: 11394 Joined: 8/15/1969 From: Seattle WA USA Status: offline
RE: ASP file download manager - 9/30/2005 16:19:37
I've changed my link to redirect directly to the file itself for now, but I'd rather obfuscate the download directory so that my "authorized" visitors (it's in a password protected zone) won't know where things are to bypass the security checkpoint in the future.
I've tried changing the "1" on line 42 to a "0" and a "2" just for S&G but no joy
_____________________________
If con is the opposite of pro, is Congress the opposite of progress?
Posts: 11394 Joined: 8/15/1969 From: Seattle WA USA Status: offline
RE: ASP file download manager - 9/30/2005 16:58:57
LOL
No, my gun... MINE!
I tried moving the folder from /downloads/ASTM/ to simply /ASTM/ and it still didn't work... I can navigate directly to the files and view / download but not via the script.
Works fine for now, but I don't like having the file path visible in the browser...
_____________________________
If con is the opposite of pro, is Congress the opposite of progress?
RE: ASP file download manager - 9/30/2005 17:10:12
I havent seen too many issues with pdfs. Other than file permissions and file sizes, they tend to do the same as any other files. Whats the complete script?
_____________________________
If you arent part of the solution, then there is good money to be made prolonging the problem
Posts: 11394 Joined: 8/15/1969 From: Seattle WA USA Status: offline
RE: ASP file download manager - 10/4/2005 18:52:26
dang... I was hoping this was a problem my host could take care of quickly. They assure me the permissions are as I need them, and I am able to pull up these files directly (if I circumvent the script)
Back to the old drawing board...
Ever feel like Wil E Coyote chasing the roadrunner?
_____________________________
If con is the opposite of pro, is Congress the opposite of progress?
RE: ASP file download manager - 10/4/2005 22:16:30
If on frontpage - try a different directory. eg /fpdb/ and then mess with the permissions that are available right click / properties
_____________________________
If you arent part of the solution, then there is good money to be made prolonging the problem
Posts: 11394 Joined: 8/15/1969 From: Seattle WA USA Status: offline
RE: ASP file download manager - 10/5/2005 2:07:30
Not on Frontpage, but I did try moving the directory to see if that changed anything (moved it to the root instead of in another directory)
still no joy
I'm confused. Worked perfectly for everything else so far... nada on these PDF's
_____________________________
If con is the opposite of pro, is Congress the opposite of progress?
RE: ASP file download manager - 10/5/2005 16:19:56
I take it it worked fine for you then on our server? Did you want a copy of the download code for comparision?
_____________________________
If you arent part of the solution, then there is good money to be made prolonging the problem
Posts: 11394 Joined: 8/15/1969 From: Seattle WA USA Status: offline
RE: ASP file download manager - 10/5/2005 16:25:10
Yep, worked to open and to download... send me a copy if you don't mind, or post it here. I'll compare and see if I've messed something up somewhere.
_____________________________
If con is the opposite of pro, is Congress the opposite of progress?
RE: ASP file download manager - 10/5/2005 16:28:49
The example that I showed you was using the Dev login, it uses a similar download code to you. Ive sent you a link - check out the download.asp file in that, or perhaps try the whole login to see if that works?
_____________________________
If you arent part of the solution, then there is good money to be made prolonging the problem