Open
Bug 1872370
Opened 9 months ago
Updated 9 days ago
Failed to upload files with same file name in different folder
Categories
(Fenix :: Downloads, defect, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: jackyzy823, Unassigned)
References
Details
(Whiteboard: [fxdroid] [group4])
Attachments
(1 file)
1.74 KB,
text/html
|
Details |
Steps to reproduce
- Prepare two text files which have same name but in different folder. ( eg . Create folder1/samename.txt and folder2/samename.txt in Download folder and fill with different text content)
- Visit the demo html page
- Click "Browse" near "Select FIle1 to upload" , and select folder1/samename.txt
- Click "Browse" near "Select FIle2 to upload" , and select folder2/samename.txt
- Click "Load Selected File" near "Select FIle1 to upload"
- Click "Load Selected File" near "Select FIle2 to upload"
Expected behavior
file content of two files are displayed.
Actual behavior
Only the second uploaded one's content could display. the first one is showing error.
Any additional information?
This is because uploaded files are all copied to the same cache folder first , so when copying the second file , the first file has been overwritten (because of the same filename).
Reporter | ||
Updated•9 months ago
|
Summary: Fail to upload same file name in different folder → Failed to upload files with same file name in different folder
Updated•9 months ago
|
Component: General → Downloads
Comment 1•8 months ago
|
||
The severity field is not set for this bug.
:mavduevskiy, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(mavduevskiy)
Updated•5 months ago
|
Severity: -- → S3
Priority: -- → P3
Whiteboard: [fxdroid] [group4]
Updated•5 months ago
|
Reporter | ||
Comment 2•5 months ago
|
||
An easy workaround is that create random folders under temp folder to store file disgustingly.
The better way : don't store temp file.
Updated•9 days ago
|
Flags: needinfo?(mavduevskiy)
You need to log in
before you can comment on or make changes to this bug.
Description
•