1

Topic: Image Upload

Hi,

I would like to use the image store function of indicia, but I can't find examples on how to upload eg. occurrece_images via the data service. Could you please provide an example?

Regards

Daniel

2

Re: Image Upload

Hi Daniel
If you look in the helper_base.php file (https://code.google.com/p/indicia/sourc … r_base.php) for the send_file_to_warehouse, you'll find an example of using the data/handle_media endpoint to upload a file to the warehouse. You need to do a 2 stage process here, first use this approach to upload the file, then when you submit your occurrence, include an occurrence_media submodel with the path set to the filename of the file on the warehouse.
Does that help?
Best wishes
John

John van Breda
Biodiverse IT