This project has moved. For the latest updates, please go here.

Control lists same file twice

Aug 21, 2012 at 9:50 PM

If the user selects a file, clicks ok, then opens the file selector again and chooses the same file, the control.Content.Files.FileList has the file listed twice. This is obviously not the behavior that should happen. The control should ignore the same file being added more than once.

The scenario where a user chooses a file, then decides after he/she wants additional file and accidentally reselects the original file is not far-fetched by any means.

Aug 22, 2012 at 4:11 PM

This is by design.

Silverlight does not know the directory of the file, only the filename. So it can be a different file with the same name from another directory.
Maybe you can analyze bits, calculate hashes etc. But this is not fool proof.

So this behaviour is by design.