GeoNode / geonode-mapstore-client

MapStore Client for GeoNode
http://geonode.org/geonode-mapstore-client/master
Other
14 stars 106 forks source link

The upload form does not select multiple files with the same name but different extensions. #1304

Open marthamareal opened 1 year ago

marthamareal commented 1 year ago

The user should be able to upload multiple files with different extensions and the same name.

DavidQuartz commented 1 year ago

@giohappy do we want to allow this? If the client should also treat files as unique based on extension, we might have to make some assumptions, because we group various file types together as one upload.

Eg: how do we tell if test.shp and test.prj belong to the same shape file in the new behaviour? If the user is uploading multiple groups of shape files with the same name?

giohappy commented 1 year ago

@DavidQuartz if we treat files as unique by name + extension the user wouldn't be allowed to load the same .shp, .shx, .dbf, or .proj files multiple times, so you can tell which form one shapefile or another. I agree with you @marthamareal that this is probably the expected behavior, but I don't see any compelling need to add this feature, which would certainly add more complexity to the upload panel. I will mark it as an improvement and leave it in the inbox.