Force overwrite downloaded files

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

User avatar
terranigma
Apollo supporter
Apollo supporter
Posts: 41
Joined: 2018-03-10, 01:46

Force overwrite downloaded files

Unread post by terranigma » 2019-08-20, 07:01

We have to download some JNLP files from our web app with fixed file name. These files are getting renamed and collected in Downloads folder despite they're for one time use. Instead of adding numbers to the end of name of these files, can I force PM to overwrite existing file?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24605
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Force overwrite downloaded files

Unread post by Moonchild » 2019-08-20, 08:21

Normally, using the "open with" mechanism will not at all use the download folder, but will use the system's TEMP folder instead. Your web application should make sure to link to the JNLP normally (sending the proper MIME type, etc.) so it doesn't trigger a download, but an "open with" the designated application.
"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Post Reply