Millisecond Forums

Calling files hosted on other servers

https://forums.millisecond.com/Topic18307.aspx

By mrsuther - 2/10/2016

Hello,
Quick question: If one places a script on the millisecond.com server, can that script contain calls to files hosted on another server?
Here is my problem:
We have a picture rating experiment with many images, and the files far exceed the allotted server space that millisecond.com provides. So we put these images on another server, yet our calls to this server from our millisecond.com script results in errors stating that the file cannot be located. Based on the instruction guide, it doesn't explicitly say whether we can in fact call files from other servers when placing our main script on the millisecond.com server.
Does anyone know if this is possible?
Thanks in advance. :-)
Cheers!
By Dave - 2/10/2016

Yes, you can absolutely do this. Include the file location (i.e. URL) in the specification for the respective items

<picture mypicture>
/ item = myitems
...
</picture>

<item myitems>
/ 1 = "http://www.myserver.com/mydirectory/image01.jpg"
/ 2 = "http://www.myserver.com/mydirectory/image02.jpg"
/ 3 = "http://www.myserver.com/mydirectory/image03.jpg"
...
</item>

and it should work just fine.
By mrsuther - 2/11/2016

Hi Supreme Being,
Thanks for the speedy reply!
I was able to get everything working based on your response, and my experiment is now live. :-)
Cheers!
By xizhouxie - 3/12/2020

Hi Dave, we tried to link photos/sounds on google drive/ box drive and it won't work, using your code above. Does it have to be hosted publicly?
By Dave - 3/12/2020

xizhouxie - 3/12/2020
Hi Dave, we tried to link photos/sounds on google drive/ box drive and it won't work, using your code above. Does it have to be hosted publicly?

The files need to be world-readable, yes.