Full image URL for case images

Hi,

I am looking to take an image from a submitted form into excel. I am using
cases to hold the record.

The image is referenced by name i.e. 1398358004338.jpg.

How do I derive the URL for both form and case?

Much thanks in advance

Tim

Hi Tim,

Embarrassingly, none of us know the answer off the top of our heads, and we
may need a little more info on what you want to do. Can you send an email
to commcarehq-support@dimagi.com with more detailed information on what you
currently have (like where you pulled 1398358004338.jpg from, what your
project is named, a link to the form for which that image was submitted,
etc.) and I think we'll be able to help you and then we'll respond with a
more general answer on this thread for anyone else who is curious.

Cheers,
Danny

··· On Tue, May 20, 2014 at 6:53 AM, Tim Butler wrote:

Hi,

I am looking to take an image from a submitted form into excel. I am using
cases to hold the record.

The image is referenced by name i.e. 1398358004338.jpg.

How do I derive the URL for both form and case?

Much thanks in advance

Tim

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Any answer to this question?

··· On Wednesday, May 21, 2014 at 5:47:44 PM UTC+2, Daniel Roberts wrote: > > Hi Tim, > > Embarrassingly, none of us know the answer off the top of our heads, and > we may need a little more info on what you want to do. Can you send an > email to commcareh...@dimagi.com with more detailed > information on what you currently have (like where you pulled 1398358004338.jpg > from, what your project is named, a link to the form for which that image > was submitted, etc.) and I think we'll be able to help you and then we'll > respond with a more general answer on this thread for anyone else who is > curious. > > Cheers, > Danny > > > On Tue, May 20, 2014 at 6:53 AM, Tim Butler <tim.bu...@gmail.com > wrote: > >> Hi, >> >> I am looking to take an image from a submitted form into excel. I am >> using cases to hold the record. >> >> The image is referenced by name i.e. 1398358004338.jpg. >> >> How do I derive the URL for both form and case? >> >> Much thanks in advance >> >> Tim >> >> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CommCare Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-developers+unsubscribe@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Hi

There is an API for downloading images from cases and I'm in the process of
adding another endpoint for form attachments.

The URL for the API's are as follows:

··· - https://www.commcarehq.org/a/{your-project}/api/case/attachment/{case_id}/{attachment_name} - https://www.commcarehq.org/a/{your-project}/api/form/attachment/{form_id}/{attachment_name}
  - this one is in the pipeline and should be live in a week or so

They require the usual authentication to access them:
https://help.commcarehq.org/display/commcarepublic/Authentication

On 11 December 2015 at 14:49, Hikesh Hasmukh hikesh.hasmukh@gmail.com wrote:

Any answer to this question?

On Wednesday, May 21, 2014 at 5:47:44 PM UTC+2, Daniel Roberts wrote:

Hi Tim,

Embarrassingly, none of us know the answer off the top of our heads, and
we may need a little more info on what you want to do. Can you send an
email to commcareh...@dimagi.com with more detailed information on what
you currently have (like where you pulled 1398358004338.jpg from, what
your project is named, a link to the form for which that image was
submitted, etc.) and I think we'll be able to help you and then we'll
respond with a more general answer on this thread for anyone else who is
curious.

Cheers,
Danny

On Tue, May 20, 2014 at 6:53 AM, Tim Butler tim.bu...@gmail.com wrote:

Hi,

I am looking to take an image from a submitted form into excel. I am
using cases to hold the record.

The image is referenced by name i.e. 1398358004338.jpg.

How do I derive the URL for both form and case?

Much thanks in advance

Tim

--


You received this message because you are subscribed to the Google
Groups "CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Simon Kelly
Senior Engineer | Dimagi South Africa

Just following up to say that the form attachment API is now live. Also
we've added an 'attachments' property to the normal form API which will
list all the attachments that a form has.

··· On 11 December 2015 at 15:22, Simon Kelly wrote:

Hi

There is an API for downloading images from cases and I'm in the process
of adding another endpoint for form attachments.

The URL for the API's are as follows:

https://www.commcarehq.org/a/{your-project}/api/case/attachment/{case_id}/{attachment_name}

https://www.commcarehq.org/a/{your-project}/api/form/attachment/{form_id}/{attachment_name}

  - this one is in the pipeline and should be live in a week or so

They require the usual authentication to access them:
Authentication - CommCare Public - CommCare Public

On 11 December 2015 at 14:49, Hikesh Hasmukh hikesh.hasmukh@gmail.com wrote:

Any answer to this question?

On Wednesday, May 21, 2014 at 5:47:44 PM UTC+2, Daniel Roberts wrote:

Hi Tim,

Embarrassingly, none of us know the answer off the top of our heads, and
we may need a little more info on what you want to do. Can you send an
email to commcareh...@dimagi.com with more detailed information on what
you currently have (like where you pulled 1398358004338.jpg from, what
your project is named, a link to the form for which that image was
submitted, etc.) and I think we'll be able to help you and then we'll
respond with a more general answer on this thread for anyone else who is
curious.

Cheers,
Danny

On Tue, May 20, 2014 at 6:53 AM, Tim Butler tim.bu...@gmail.com wrote:

Hi,

I am looking to take an image from a submitted form into excel. I am
using cases to hold the record.

The image is referenced by name i.e. 1398358004338.jpg.

How do I derive the URL for both form and case?

Much thanks in advance

Tim

--


You received this message because you are subscribed to the Google
Groups "CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Simon Kelly
Senior Engineer | Dimagi South Africa

--
Simon Kelly
Senior Engineer | Dimagi South Africa

Excellent Simon

··· On 15 Dec 2015 09:40, "Simon Kelly" wrote:

Just following up to say that the form attachment API is now live. Also
we've added an 'attachments' property to the normal form API which will
list all the attachments that a form has.

On 11 December 2015 at 15:22, Simon Kelly skelly@dimagi.com wrote:

Hi

There is an API for downloading images from cases and I'm in the process
of adding another endpoint for form attachments.

The URL for the API's are as follows:

https://www.commcarehq.org/a/{your-project}/api/case/attachment/{case_id}/{attachment_name}

https://www.commcarehq.org/a/{your-project}/api/form/attachment/{form_id}/{attachment_name}

  - this one is in the pipeline and should be live in a week or so

They require the usual authentication to access them:
Authentication - CommCare Public - CommCare Public

On 11 December 2015 at 14:49, Hikesh Hasmukh hikesh.hasmukh@gmail.com wrote:

Any answer to this question?

On Wednesday, May 21, 2014 at 5:47:44 PM UTC+2, Daniel Roberts wrote:

Hi Tim,

Embarrassingly, none of us know the answer off the top of our heads,
and we may need a little more info on what you want to do. Can you send an
email to commcareh...@dimagi.com with more detailed information on
what you currently have (like where you pulled 1398358004338.jpg from,
what your project is named, a link to the form for which that image was
submitted, etc.) and I think we'll be able to help you and then we'll
respond with a more general answer on this thread for anyone else who is
curious.

Cheers,
Danny

On Tue, May 20, 2014 at 6:53 AM, Tim Butler tim.bu...@gmail.com wrote:

Hi,

I am looking to take an image from a submitted form into excel. I am
using cases to hold the record.

The image is referenced by name i.e. 1398358004338.jpg.

How do I derive the URL for both form and case?

Much thanks in advance

Tim

--


You received this message because you are subscribed to the Google
Groups "CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--


You received this message because you are subscribed to the Google
Groups "CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Simon Kelly
Senior Engineer | Dimagi South Africa

--
Simon Kelly
Senior Engineer | Dimagi South Africa

--


You received this message because you are subscribed to a topic in the
Google Groups "CommCare Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-developers/EuugDu1h--A/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Simon,

Can this be used to download all images within an application and not just their URLs?

Can we do a bulk download of the images within an application or a particular survey form?

The API can be used to download individual form attachments. You could write a script to do the downloads based on the form IDs in your project space.

You can do a bulk media export to get all the attachments as described on the help site: Form Data Export - CommCare Public - CommCare Public