hotosm / fmtm

Field Mapping Tasking Manager - coordinated field mapping.
https://fmtm.hotosm.org/
GNU Affero General Public License v3.0
49 stars 46 forks source link

Users should be able to download images too along with submissions. #1781

Open manjitapandey opened 2 months ago

manjitapandey commented 2 months ago

Is your feature request related to a problem? Please describe. Currently we allow user to download submissions as geojson but the images obtained can't be downloaded.

Describe the solution you'd like I am not sure how to obtain this technically but this can be something, user want to download images as well in the submission.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

spwoodcock commented 2 months ago

Once #1706 is done this will be trivial.

The user can simply right click on the image and save it from the browser.

Buuut, if we actually want to include the images in the submission zip instead (to download all together), this this needs a bit more work.

We can add a flag/param include_images to the submission download endpoint. Then get all the S3 URLs, download the images, and include in a directory of the zip.

Note instead of downloading, another option could be to simply append the S3 URLs to the submission JSON somewhere. If this is easy / possible, it might be the preferred option.