Allow renaming a downloaded file to an uppercase version of the file name (ie: url.pdf -> url.PDF or URL.pdf or URL.PDF). The issue is with `to.exists()` in `processFileRenaming` ([source code](https://searchfox.org/firefox-main/rev/cced10961b53e0d29e22e635404fec37728b2644/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/downloads/listscreen/middleware/DownloadUIRenameMiddleware.kt#70)]. Java File API `exists()` is not case sensitive. Steps to Reproduce: 1. Download a file named url.pdf 2. From the download screen, rename, and type url.PDF 3. Click Save Actual result: An error says "A file named "url.PDF" already exists in this location Expected result: Allow to rename
Bug 2017179 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Allow renaming a downloaded file to an uppercase version of the file name (ie: url.pdf -> url.PDF or URL.pdf or URL.PDF). The issue is with `to.exists()` in `processFileRenaming` ([source code](https://searchfox.org/firefox-main/rev/cced10961b53e0d29e22e635404fec37728b2644/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/downloads/listscreen/middleware/DownloadUIRenameMiddleware.kt#70)]. Java File API `exists()` is not case sensitive. A potential solution would be to investigate a different API that would allow us to check if the destination file name exists. Steps to Reproduce: 1. Download a file named url.pdf 2. From the download screen, rename, and type url.PDF 3. Click Save Actual result: An error says "A file named "url.PDF" already exists in this location Expected result: Allow to rename