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
|
The technical forum of the NBN Trust for use by the Network. It includes discussions and announcements on the NBN Atlas, Recorder 6 and Indicia |
You are not logged in. Please login or register.
Forum → Indicia Development → 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
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
Forum → Indicia Development → Image Upload
Powered by PunBB 1.4.6, supported by Informer Technologies, Inc.