Closed Thread Icon

Preserved Topic: Open file download window? or at least shellexecute? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18427" title="Pages that link to Preserved Topic: Open file download window? or at least shellexecute? (Page 1 of 1)" rel="nofollow" >Preserved Topic: Open file download window? or at least shellexecute? <span class="small">(Page 1 of 1)</span>\

 
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 09-14-2001 10:43

Hello,

I have uploaded some .doc files, and some .wmv and .mov files...

How can i make an <a> tag that whenever clicked either the "Save file..." dialog appears or the appropriate program opens the selected file...

example: <a href="file1.wmv">click me to view</a>

this example above doesn't display the movie!

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 09-14-2001 11:31

This has to do with association of mime-types to programs, if I'm not mistaken you are dependant on what associations the visitor has in his/hers system which makes it hard to work with.

You could probably try to persuade the server to fake the mime-type sent to the client, how you would do this, I dont't know.

The easiest way is to use a fileformat like .zip to force download instead of executing.

let's hope someone else has a way around this, I'd like to know as well.
/Dan

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 09-14-2001 15:23

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 09-14-2001 22:21

I might have went a bit crazy I had a little bug in my code that had me ask this question...but now I fixed it.

thanks Dms, Ini.

« BackwardsOnwards »

Show Forum Drop Down Menu