OpenFileDialog Multiselect Problem

I have a standard OpenFileDialog

var openFileDialog = new OpenFileDialog { DefaultExt = "mpo", Filter = "Image file |*.mpo", Multiselect = true, RestoreDirectory = true, }; 

and when I try to use it to open several photos on β€œ fujifilm finepix real 3d w1 photoshop”, it launches the message β€œ Unable to open several elements from this place. one element instead. ” Opening only 1 file is ok.

When I try to select photos from a hard drive or other removable device, everything is fine.

Any problem arising?

+6
source share
2 answers

This also happens with mapped drives. Try using this instead of the standard OpenFileDialog: http://www.ssware.com/fileview/fileview.htm

+4
source

Due to the fact that you have already figured out that doing the same from another place does not create any problems, there is something with your camera.

As a workaround for your application, you should not open all files directly on the device. Instead, copy all the selected items to the save folder (the automatically created folder under the temp folder) and open them from there.

0
source

Source: https://habr.com/ru/post/888827/


All Articles