Skip to content

Fix upload panel to display file extensions based on upload type #2484

@anup39

Description

@anup39

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

Image Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions