

I've looked for new relevant firefox bug tickets but haven't found any. I'm on Firefox Developer 112.0b9 on Windows 10. Click the Firefox option at the top of the main Firefox window and click. If omitted, this value will default to the filename already given to the download file, and a location immediately inside the downloads directory. You may be able to fix download problems by clearing your download history. Absolute paths, empty paths, path components that start and/or end with a dot (.), and paths containing back-references (./) will cause an error.

This doesn't seem to match the MDN documentation for this function:įilename (Optional): A string representing a file path relative to the default downloads directory - this provides the location where you want the file to be saved, and what filename you want to use. In doing some debugging, it seems that I can save a file if it ends in _url but not. Chrome Update Download Windows 10 Download Google Chrome for Windows & read reviews.

It used to work, but now when that final line is executed it throws an error:Įrror: filename must not contain illegal characters 61 for Windows, Mac, and Linux, an emergency update addressing a. When the final line executes, downloadSettings.filename will have been set to something like "dog.url", and the file will be saved with that name. Let objectUrl = URL.createObjectURL(file) ĭownloadSettings.saveAs = settings.saveAs ī(downloadSettings).then(null, (error) => console.log(error)) The issue is with these lines, reproduced here: let filename = "" It's worked for months, but just started failing a few weeks ago. It's a button that saves the current page as a shortcut file in your downloads directory. I'm trying to fix a 3rd party firefox addon.
