* Use the POST method on /cgi/product_image_upload.pl
* Use the POST method on /cgi/product_image_upload.pl
** code: the barcode
** code: the barcode
Line 1,716:
Line 1,716:
** imgupload_nutrition: your image file if imagefield:nutrition
** imgupload_nutrition: your image file if imagefield:nutrition
−
Important:
+
'''Important:'''
−
* there must be a HTTP header "Content-Type: multipart/form-data" in the HTTP POST request.
+
* There must be a HTTP header "Content-Type: multipart/form-data" in the HTTP POST request.
−
* the imageupload_(front|ingredients|nutrition) name, size and data needs to be encoded in the multipart/form-data format, usually your HTTP request library will do that for you
+
* The imageupload_(front|ingredients|nutrition) name, size and data needs to be encoded in the multipart/form-data format, usually your HTTP request library will do that for you.
−
* all parameters need to be passed as POST parameters, do not put some in the URL
+
* All parameters need to be passed as POST parameters, do not put some in the URL.
−
* 0048151623426 is a random barcode used only for demonstration purpose
+
* 0048151623426 is a random barcode used only for demonstration purposes.
Example: <sup>(remember to do tests on world.openfoodfacts.net - login and password: off )</sup>
Example: <sup>(remember to do tests on world.openfoodfacts.net - login and password: off )</sup>