/    Sign up×
Community /Pin to ProfileBookmark

using SaveAs box when downloading document from FTP

I’m trying to download an mpg file from my FTP (IIS Server) using document.execCommand(“SaveAs”,true, “GuayamaEng.mpg”). The problem is that when I get the “Save As” and I click OK, it basically creates copy of the html page with the link and names it GuayamaEng.mpg. Since it’s a large file, I need that the user be able to choose where he will save the file. What can I use?
Thanks,
VM

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@VMHatupauthorJul 03.2003 — Thanks for the info. Since I'm pretty new with web development, where would the server-side code be? This is just to get an idea of what to work in.

Thanks.
Copy linkTweet thisAlerts:
@pyroJul 03.2003 — If you need the PHP version look at http://www.infinitypages.com/research/download.htm (note: That script is currently insecure, and shabbily programmed. I'll try to rewrite it soon, to account for some of the security concerns and use better programming...)

[edit - I got rid of the crappy programming, but won't have time to fix the security issues for a bit. Use at your own risk!]
×

Success!

Help @VMHatup 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 5.24,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...