Absolute paths, empty paths, and paths containing back-references (
../
) will cause an error.
The attached test extension tries to download a blob into “.Test.txt”
Result:
Error: filename must not contain illegal characters
The leading dot is the problem.
Apparently, Firefox interprets the dot as meaning “current directory”, and that’s not allowed in a filename passed to downloads.download()
Questions:
- Is there a way to create a dot file with downloads.download() ?
- Are there other illegal characters not mentioned in the downloads.download() documentation?
downloadblob.zip (4.1 KB)