![]() 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. ![]() It used to work, but now when that final line is executed it throws an error:Įrror: filename must not contain illegal characters 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |