Download file dialog: allow to rename and change location
Categories
(Firefox for Android :: Downloads, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: titouan, Assigned: giorga)
References
(Depends on 1 open bug)
Details
(Whiteboard: [fxdroid][group4])
Attachments
(1 file)
When the user starts a download, we currently have a dialog that asks them if they want to download the file.
This dialog should be replaced with a new one (Figma here), and placed behind a feature flag.
The dialog shows:
- the size of the file to download
- a field with the default file name (that doesn't get focus when the dialog opens)
- a text view showing the path. It's preloaded with the default download path (that can be selected from the Settings, after Bug 1812815 is implemented)
- Cancel and Download buttons.
When clicking the path, it should open the Location Picker (Figma), similar to what should be implemented in Bug 1812815.
The selected location only impacts the current download, and shouldn't be persisted.
When clicking the filename field, the focus should first go to the filename (excluding the extension).
The user can only rename the part before the extension.
The Download button should be disabled if:
- filename is empty
- file "full path" (path + filename) is too long
If the full path is too long (meaning the Android system wouldn't accept to write the file), then an error message should be shown below the path text (Figma here)
Updated•6 months ago
|
Updated•3 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
I removed the check and the error message for the file path length. Because we don't know for sure the number of the file path length that the Android system supports.
I checked with the Pixel 7, and it was 5000, but I'm not sure this case applies to all the phones.
And we have a mechanism: when we are saving the file, if it fails in the custom download folder, we are saving the file in the default download folder.
| Assignee | ||
Comment 3•2 months ago
|
||
I removed the check and the error message for the file path length. Because we don't know for sure the number of the file path length that the Android system supports.
I checked with the Pixel 7, and it was 5000, but I'm not sure this case applies to all the phones.
And we have a mechanism: when we are saving the file, if it fails in the custom download folder, we are saving the file in the default download folder.
Comment 5•2 months ago
|
||
| bugherder | ||
Comment 6•2 months ago
|
||
| bugherder | ||
Description
•