-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for a photo comment to be passed with image upload API requests #6534
Comments
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 @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
The text was updated successfully, but these errors were encountered: