Open Bug 1491630 Opened 6 years ago Updated 2 years ago

Supply a specific error message if the download fails because the file name is too long

Categories

(WebExtensions :: General, defect, P5)

63 Branch
defect

Tracking

(Not tracked)

People

(Reporter: eight04, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Steps to reproduce: On Windows 7, download a file through `downloads.download` with a very long filename. Actual results: If the filename contains a subfolder and Firefox failed to create the subfolder, `downloads.download` is rejected with an "An unexpected error occurred" error. Otherwise, the file is successfully sent to the download manager, but then instantly fails with the "FILE_FAILED" error message. See also: https://github.com/eight04/image-picka/issues/124 Expected results: Both of them should report some special messages that indicate the user "this filename is too long", so they can choose a shorter filename.
Moving the bug to the WebExtensions component, since it may have higher chances of getting developer attention. It may require changes to the back-end DownloadError object, and I'd be happy to review them.
Status: UNCONFIRMED → NEW
Component: Downloads API → General
Ever confirmed: true
Product: Toolkit → WebExtensions
Summary: Make download error more precise? → Supply a specific error message if the download fails because the file name is too long
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.