Description
Currently the upload panel shows same (all) extensions for any type of upload .
For example when we upload style and metadata the supported extensions also include geojson which is not correct
We should update the upload panel according to the type of upload like datasets, style , metadata or where the Panel is being used..
Initial Investigation
It seems like we can control the supported file format on the type of the action when specific upload button are triggered.
Type of action
https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/client/js/plugins/Operation/actions/operation.js#L14
We need to add supporting labels based on the action.
https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/client/js/plugins/Operation/components/UploadPanel.jsx#L118
Description
Currently the upload panel shows same (all) extensions for any type of upload .
For example when we upload style and metadata the supported extensions also include geojson which is not correct
We should update the upload panel according to the type of upload like datasets, style , metadata or where the Panel is being used..
Initial Investigation
It seems like we can control the supported file format on the type of the action when specific upload button are triggered.
Type of action
https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/client/js/plugins/Operation/actions/operation.js#L14
We need to add supporting labels based on the action.
https://github.com/GeoNode/geonode-mapstore-client/blob/master/geonode_mapstore_client/client/js/plugins/Operation/components/UploadPanel.jsx#L118