Submitted photo – Direct http link

30 views
Skip to first unread message

Shailesh Mewada

unread,
Jul 24, 2013, 4:07:45 AM7/24/13
to commcar...@googlegroups.com
Hi All,

Is that possible to get the direct http path of the image uploaded with the form?

The uploaded images only can be seen in attachment section on CommCare site.

Thanks,
Shailesh

Sheel Shah

unread,
Jul 24, 2013, 7:49:05 AM7/24/13
to commcar...@googlegroups.com
Hi Shailesh, 

If you do a form export of your data, a few of the columns will indicate the path to the image on our website.  You can use that to create the right URL to get the image.

Thanks,
Sheel  
--
You received this message because you are subscribed to the Google Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
Sheel Shah
Project Manager | Dimagi India



Shailesh Mewada

unread,
Jul 24, 2013, 8:05:43 AM7/24/13
to commcar...@googlegroups.com
Hi Sheel,

Glad to see (write) you after the workshop!

I have already tried that, but it is only allowing to view the image when I am logged in on CommCare site. If not then there is a prompt for username/password.
I want to check the image without login on the site.

Thanks,
Shailesh


On Wednesday, July 24, 2013 5:19:05 PM UTC+5:30, Sheel Shah wrote:
Hi Shailesh, 

If you do a form export of your data, a few of the columns will indicate the path to the image on our website.  You can use that to create the right URL to get the image.

Thanks,
Sheel  

On Wednesday, July 24, 2013, Shailesh Mewada wrote:
Hi All,

Is that possible to get the direct http path of the image uploaded with the form?

The uploaded images only can be seen in attachment section on CommCare site.

Thanks,
Shailesh

--
You received this message because you are subscribed to the Google Groups "commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Cory Zue

unread,
Jul 24, 2013, 9:45:34 AM7/24/13
to commcar...@googlegroups.com
Hi Shailesh,

Due to security and privacy concerns this is not possible. Depending on your use case, you can use a tool like curl to script downloading the images while providing a stored password. This would look something like this:

curl --digest -u "user:password" [url]

Cory

To unsubscribe from this group and stop receiving emails from it, send an email to commcare-user...@googlegroups.com.

Shailesh Mewada

unread,
Jul 25, 2013, 5:45:14 AM7/25/13
to commcar...@googlegroups.com
Hi Cory,

Thanks for the response.

I have tried curl script but I am getting error 500.

curl --digest -u "MYUSER:PASS" -k -L SERVERPATH/?attachment=FILENAME.jpg

Regards,
Shailesh

Cory Zue

unread,
Jul 25, 2013, 8:29:30 AM7/25/13
to commcar...@googlegroups.com
Hey Shailesh,

Our logs have picked this up and it looks like you're using a filename that isn't matching up with the forms. Make sure that the guid (long string of letters and numbers) in the URL matches the form id, and that the filename matches exactly the filename in the URL when you click on the attachment. If you continue to have problems you can email commcareh...@dimagi.com.

thanks,
Cory
Reply all
Reply to author
Forward
0 new messages