geosolutions-it / nexus-geonode

Nexus Platform
BSD 2-Clause "Simplified" License
0 stars 4 forks source link

Set thumbnail through the set_thumbnail endpoing and add Apply button #547

Closed giohappy closed 2 years ago

giohappy commented 2 years ago

Saving thumbnails through the global Save has been disabled starting from https://github.com/GeoNode/geonode/pull/8581. A dedicated set_thumbnail API has been implemented, which supports sending / setting the thumbnail with a PUT request, either as:

base64 or link can be set with the file field inside the JSON body of the request. E.g.

{ 'file': 'data:image/png;base64,(....)' }

A file upload can be performed with form data.

The client must be adapted to leverage the new API, and implement a contextual Apply button that will be visible only when the thumbnail has been changed.

image