Changes

Jump to navigation Jump to search
283 bytes added ,  13:00, 9 May 2016
→‎Posting photos: need Content-Type: multipart/form-data
Line 202: Line 202:  
** imgupload_ingredients: your image file if imagefield:ingredients
 
** imgupload_ingredients: your image file if imagefield:ingredients
 
** imgupload_nutrition: your image file if imagefield:nutrition
 
** imgupload_nutrition: your image file if imagefield:nutrition
 +
 +
Important:
 +
* 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
 +
    
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>

Navigation menu