javascript - Is It Possibly to Access Firefox Save As Command Using JS? -


i'm trying figure out how call file save command in firefox (the 1 when right click image , save it) save image using js (or if there else can use, grateful if pointed me in direction). looking example of how open save menu , pre-fill file name field ... i've been searching furiously , have come zip. in search saw cannot directly save file disk, impossible call save function? suggestions appreciated!

edit: i'm not looking make code available everyone, , java script client side, i'm writing small script make saving photos little easier in terms of naming them.

-will

no can't this, , trying find solution in way not embrace internet , way people interact content. trying call on operating system operation javascript. if there anyway possible, don't think @ all, poor solution. think different operating systems firefox being used on. if found solution windows 7, apple mac running firefox?

what should consider user decides whether save computer, not programmer of application. provide link file, users know how right click link , select save as. add tip explaining well.

to give file specific name or start automatic download when user clicks or takes kind of action, can create response server pdf,excel,jpeg,doc,docx or many other files types. server can load file in memory , sent response proper header information in response.

for example set specific name file when user downloads can set response header like:

header('content-disposition: attachment; filename="downloaded.pdf"'); 

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -