Force overwrite downloaded files

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

Moderator: trava90

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

Force overwrite downloaded files

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: 26080
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Force overwrite downloaded files

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.
"There will be times when the position you advocate, no matter how well framed and supported, will not be accepted by the public simply because you are who you are." -- Merrill Rose
Image

Locked