- Home /
Downloading files from Dropbox
Is it possible to download files from Dropbox using Unity? Like, for example, i want to download this certain file from Dropbox and, I would enter the filename and download it by tapping a button. Does Dropbox have an API for unity? Thanks in advance.
Answer by Marceta · Dec 12, 2016 at 06:42 AM
Yes it is possible. The question is are you capable to do it. Is your project for mobile or desktop platform? Do you have experience in writing plugins?
Dropbox have API for developers and it's here: https://www.dropbox.com/developers As you can see on these links some guy's already built some stuff with it: https://www.assetstore.unity3d.com/en/#!/content/4096 https://www.assetstore.unity3d.com/en/#!/content/62108
Hi. Thank you for your answer! I do have experience in writing plugins for android and ios. I'm gonna check out the links you sent and give you an update. Thank you
Additional info: $$anonymous$$y project is for mobile.
Answer by trueguy · Jun 30, 2018 at 10:21 AM
If anyone else will face same problem: I just created asset for easy downloading from Dropbox and realtime tracking of changes: DropboxSync - Asset Store
Example usage:
// Download Jpeg image from Dropbox (or used cached if no updates)
// and receive it as Texture2D object.
DropboxSync.Main.GetFile<Texture2D>("/DropboxSyncExampleFolder/image.jpg", (res) => {
if(res.error){
Debug.LogError("Error getting picture from Dropbox: "+res.errorDescription);
}else{
Debug.Log("Received picture from Dropbox!");
var tex = res.data;
UpdatePicture(tex);
}
}, useCachedFirst:true);
Your answer
Follow this Question
Related Questions
WebGL - Streaming of 'ogg' on this platform is not supported 1 Answer
Downloading images and keeping them after loading a scene (WebGL) 0 Answers
Fatal Error- multiple Library folders 2 Answers
Downloading Bootcamp from Asset Store An Error Appears 0 Answers
failing to download assetbundle manifest object with UnityWebRequest 0 Answers