Default download to USB or abort
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?
Modifié le