Official Android SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
Like in a web app we can use exportFile() and pass url and service (DROPBOX, GOOGLE_DRIVE).
The docs don't mention anything on the similar lines, if I want to upload a file directly from some URL to dropbox or any other service, how would that be done.
PS:
I looked into the code and got this far, ContentService.javaLine 171:
FPFile result = FpApiClient.getFpApiClient(this).pickFile(
URLDecoder.decode(node.linkPath, "utf-8"),
"fpurl",
FpApiClient.getJsSession(this));
If I pick a file from Dropbox, node.linkPath comes out to be something like
/Dropbox/Images/Blah.png
If I were to take the same approach for uploading files from URLs, I would have to somehow replace that path and make it work with
https://www.dropbox.com/home/Images/Blah.png
Like in a web app we can use
exportFile()
and passurl
andservice
(DROPBOX, GOOGLE_DRIVE). The docs don't mention anything on the similar lines, if I want to upload a file directly from some URL to dropbox or any other service, how would that be done.PS: I looked into the code and got this far, ContentService.java Line 171:
If I pick a file from Dropbox, node.linkPath comes out to be something like
/Dropbox/Images/Blah.png
If I were to take the same approach for uploading files from URLs, I would have to somehow replace that path and make it work withhttps://www.dropbox.com/home/Images/Blah.png
Any help would be much appreciated.