Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

Default download to USB or abort

  • Keine Antworten
  • 1 hat dieses Problem
  • 2 Aufrufe
more options

Because I have an embedded application, I want to give the user an option to download a file to a USB stick. What I don't want is that the user is shown a "Save As..." dialog.

So I had the Idea, to make the following changes:

browser.download.dir = /mnt/usb0

browser.download.folderList = 2

... and the Default Application for the file type is set to -> Save File

The result is, that there is no Dialog shown, and the file is saved the the USB stick, nice!

Now, the Problem is when there is no usb stick connected. Since Firefox can't access /mnt/usb0, it defaults to the Downloads folder, but I want Firefox to abort the download.

Is there a way to change the "alternative default" to /dev/null or abort the download, when the path does not exist?

Because I have an embedded application, I want to give the user an option to download a file to a USB stick. What I don't want is that the user is shown a "Save As..." dialog. So I had the Idea, to make the following changes: browser.download.dir = /mnt/usb0 browser.download.folderList = 2 ... and the Default Application for the file type is set to -> Save File The result is, that there is no Dialog shown, and the file is saved the the USB stick, nice! Now, the Problem is when there is no usb stick connected. Since Firefox can't access /mnt/usb0, it defaults to the Downloads folder, but I want Firefox to abort the download. Is there a way to change the "alternative default" to /dev/null or abort the download, when the path does not exist?

Geändert am von kamocvuao