/    Sign up×
Community /Pin to ProfileBookmark

open/save file from hyperlink

As I understand it, you can create a hyperlink to any filetype and when clicked, if the end user’s browser does not know how to handle the type it will display an open/save dialog box. Correct?

So I have 2 files in a directory on my website (a.xml and a.aml). The xml file opens in the browser as expected, the aml file is the same file as the xml with a changed extension. When I click on the aml link I get “The page can not be found” rather than the open/save dialog.

Ideas?

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@KDLADec 27.2006 — The file type has to be one that the browser can reference for the open/save dialogue. Many times, that's dependent upon the platform and/or existing programs on the computer.

What you might do, instead, for those files you wish saved is to place them in ZIP files, or another similar format. (This might help, too, if the browser's security settings do not allow your file types to be downloaded.)
Copy linkTweet thisAlerts:
@smayauthorDec 27.2006 — So even if I have associated .aml with an app on my machine, that doesn't necessarily mean it will recognize it and give me the save/open option?

Thanks.
Copy linkTweet thisAlerts:
@KDLADec 27.2006 — Right, because that's a setting on your machine; your association setting doesn't change the settings of other machines around the world. ?
Copy linkTweet thisAlerts:
@smayauthorDec 27.2006 — i understand that, but this functionality will be built around a specific application that the users have purchased. so i was hoping that if it worked (on my machine) i would know what had to be done on my customers' machines to get the same results.

is there some setting that can me changed to "tell" the browser to display the save/open box?
×

Success!

Help @smay spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...