openfoodfacts/openfoodfacts-server

Allow for a photo comment to be passed with image upload API requests

Open

#6,534 opened on Mar 31, 2022

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Perl (236 forks)batch import
API WRITEHacktoberfestgood first issue⏰ Stale👮 Moderation🖼️ Image upload

Repository metrics

Stars
 (477 stars)
PR merge metrics
 (Avg merge 15d 21h) (157 merged PRs in 30d)

Description

What

  • Allow for a photo comment to be passed with image upload API requests

Why

  • We can't moderate anonymous image uploads from Smoothie and other apps

Example

https://world.openfoodfacts.org/product/8006786051900/gel-hydroalcoolique-primagel image

Code pointers

The corresponding code in cgi/product_image_upload.pl and Images.pm (process_image_upload() function)

Part of

  • #5523

Contributor guide