Details
Description
I used the webengine to download a file called "Test (1. Kopie).txt".
The QWebEngineDownloadItem return for path() "/path/Test (1. Kopie).txt".
I didn't delete the file.
After some some hours i downloaded the same file again.
The QWebEngineDownloadItem return for path() "/path/Test (1(1). Kopie).txt".
In my opinion the object should return for path() "/path/Test (1. Kopie)(1).txt".
This is also the path like chromium would return.
I didn't find any other bug about this.
You can find the filename calculations in https://github.com/qt/qtwebengine/blob/f0c5f3306fadc7dea7a13defd8b9cf20a6982493/src/core/download_manager_delegate_qt.cpp#L161
Attachments
Issue Links
- relates to
-
QTBUG-72176 No API to set default download path for WebEngine
-
- Closed
-
- resulted in
-
QTBUG-74764 Downloading one file more than 100 times does not work properly on Windows
-
- Closed
-
For Gerrit Dashboard: QTBUG-66262 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
247517,2 | Fix uniquifying download filename | 5.12 | qt/qtwebengine | Status: MERGED | +2 | 0 |
248560,1 | Fix uniquifying download filename | dev | qt/qtwebengine | Status: ABANDONED | 0 | 0 |
248561,4 | Add API to set default download path | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |