Page 2 of 2
Re: mergDropboxDownload example
Posted: Sun Aug 06, 2017 2:50 pm
by Mikey
Joe, if you're familiar with git, submit a pull request to my repo. If not, please submit an issue and I'll have a look. Also please post back here with the LC bug report number.
Re: mergDropboxDownload example
Posted: Sun Aug 06, 2017 4:47 pm
by jacque
I had some problems with the use of:
put it into URL ("file:myDownloadedFile.txt")
Your solution works fine, but for future reference, the issue wasn't in the Dropbox extension but rather in the use of "file:" as the URL designator. That only works with text files. If you need to work with binary files, use "binfile" :
"binfile:myDownloadedFile.txt"
Re: mergDropboxDownload example
Posted: Wed Jul 24, 2019 7:47 pm
by rcmills
I read this post with great excitement, as I have been trying to upload files to Dropbox from an iOS app. Unfortunately this doesn't seem to be implemented in the iOS environment. Is there any way to do it?
Re: mergDropboxDownload example
Posted: Wed Jul 24, 2019 7:59 pm
by Mikey
Our apps use this on ios literally constantly.
Re: mergDropboxDownload example
Posted: Wed Jul 24, 2019 10:18 pm
by rcmills
I am using LC 9.0.1 Build 15103 - do I need to update?
Or do I need to include any library or anything in my iOS build?
Here is my relevant code:
Code: Select all
put dbToken into pAccessToken
put "overwrite" into pMode
put False into pAutorename
put true into pMute
get hiliteData
put "Update:" && the seconds into line 1 of it
replace cr with "###" in it -- because Dropbox doesn't return any cr's when I download
put "/hiliteData.txt" into pPath
put it into pData
dropboxUpload pAccessToken, pPath, pMode, pAutorename, pMute, pData
I get an error message "can't find handler".
Re: mergDropboxDownload example
Posted: Thu Jul 25, 2019 12:06 am
by Mikey
in Standalone settings go to inclusions and add the Dropbox library.
Re: mergDropboxDownload example
Posted: Thu Jul 25, 2019 12:28 am
by rcmills
Many thanks!
Re: mergDropboxDownload example
Posted: Thu Jul 25, 2019 12:36 am
by Mikey
Don't thank me until you have it running...
Re: mergDropboxDownload example
Posted: Thu Jul 25, 2019 1:37 pm
by rcmills
I do, and it works well!