Force download without scripting

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
BMN
-


Joined: 16 Jun 2005
Posts: 16

PostPosted: Tue Nov 20, 2007 9:37 pm    Post subject: Force download without scripting Reply with quote

Hi all,

I'm new to Abyss Web Server but it looks very good and easy to use. I use it to make sending files and documents, like pdf, mov, doc, mp3 etc to friends even easier than by mail.

I.e. I want to give someone a certain PDF file. Instead of using a PHP script (like snif) I would like to be able to link to the file directly, but the other person should get an open/save window instead of the PDF being opened in Adobe Reader (in IE). Is it possible to configure Abyss Web Server this way (for certain file types)?

Thanks in advanced.
________
Rolls-Royce Camargue


Last edited by BMN on Fri Feb 04, 2011 5:38 am; edited 1 time in total
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Nov 20, 2007 10:12 pm    Post subject: Reply with quote

Its very difficult. Most places will just ask you to right click and save target as.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Wed Nov 21, 2007 3:02 pm    Post subject: Reply with quote

Not really. It depends on how the client system is setup. You have no control over how the user has configured their browser setup.
_________________
Olly
Back to top View user's profile Send private message
BMN
-


Joined: 16 Jun 2005
Posts: 16

PostPosted: Wed Nov 21, 2007 10:40 pm    Post subject: Reply with quote

But you are able to force it with PHP regardless of the user's browser settings. I was wondering if you could also do that serverwise, but I guess not. I'll stick to the PHP-way...

Last edited by BMN on Mon Oct 10, 2011 5:48 pm; edited 3 times in total
Back to top View user's profile Send private message
Vesku
-


Joined: 13 Nov 2006
Posts: 11

PostPosted: Tue Jan 08, 2008 11:27 am    Post subject: Re: Force download without scripting Reply with quote

BMN wrote:
Hi all,

I'm new to Abyss Web Server but it looks very good and easy to use. I use it to make sending files and documents, like pdf, mov, doc, mp3 etc to friends even easier than by mail.

I.e. I want to give someone a certain PDF file. Instead of using a PHP script (like snif) I would like to be able to link to the file directly, but the other person should get an open/save window instead of the PDF being opened in Adobe Reader (in IE). Is it possible to configure Abyss Web Server this way (for certain file types)?

Thanks in advanced.


I think only way to do this is with scripts. :(

You can use snif and inform link in following format:
www.yourdomain.com/snifdir/index.php?path=somedirectory&download=filename.txt

or you can use my script http://www.aprelium.com/forum/viewtopic.php?p=71143#71143
Link in following format:
www.yourdomain.com/somedirectory/?download=filename.txt

This gives open/save window.

Br. Vesku
Back to top View user's profile Send private message
Vesku
-


Joined: 13 Nov 2006
Posts: 11

PostPosted: Tue Jan 08, 2008 7:21 pm    Post subject: Reply with quote

I made also a alternative script where all links are "force download" -links.

Maybe this was what you were looking for?

www.aprelium.com/forum/viewtopic.php?p=71143#71143
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group