Open teolemon opened 2 years ago
This issue is stale because it has been open 90 days with no activity.
The corresponding code in cgi/product_image_upload.pl and Images.pm (process_image_upload() function)
Hi @stephanegigandet! As a part of this do we need a new subroutine that takes the comment as an input from user?
Hi @stephanegigandet! As a part of this do we need a new subroutine that takes the comment as an input from user?
Hi @deveshidwivedi , this issue is for API request, to have a comment supplied by the app (not the user). So there is no need to add an input from user, we just need to change the backend to record the comment supplied through the API.
Hi @stephanegigandet! Is this the correct way to proceed?
Hi @deveshidwivedi it's a good start, you need to call request_param("comment") to get the value passed to the API. Also we may want to keep "Image upload" as the comment, and then add the comment passed to the app to it. e.g. "Image upload - some extra comment from the app / the user"
Thank you! @stephanegigandet I get it now
What
Why
Example
https://world.openfoodfacts.org/product/8006786051900/gel-hydroalcoolique-primagel
Code pointers
The corresponding code in cgi/product_image_upload.pl and Images.pm (process_image_upload() function)
Part of
5523