problem removing file when multiple files have same name
I can only remove a file by specifying filename. Here's the problem:
If I'm not uploading the files immediately, then I can select a few files from one folder, and a few from another. Its quite possible (in fact, for some filenames like index.html fairly common) for a filename to appear multiple times. There is no way for me to specify WHICH index.html I want to remove.
SUGGESTION: In my local environment I tried assigning a unique id to every file; made this a part of each entry in my local copy of dijit.FileUploader?.fileList. I can reliably remove a file from the filelist via this automatically assigned unique id... if I'm using the html uploader. But for the flash uploader I can't do this unless the flash uploader supports deletion by id rather than by name. My advice is that fileList incorporates an automatically generated integer id for each file to uniquely identify it, and to have a removeFileById method that allows developers to remove by id rather than the more limiting (but friendlier) removal by name.
Change History (8)
Owner: |
changed from Adam Peller to Mike Wilcox
|
Component: |
Dojox →
DojoX Uploader
|
Summary: |
dijit.FileUploader →
problem removing file when multiple files have same name
|
Owner: |
changed from Mike Wilcox to dylan
|
Status: |
new →
assigned
|
Milestone: |
2.0 →
1.12
|
Owner: |
dylan deleted
|
Status: |
assigned →
open
|
Resolution: |
→ patchwelcome
|
Status: |
open →
closed
|
Efforts are moved to dojox.form.Uploader, but I believe this problem may still persist. Plan enhancements for 1.6 and I will investigate.