I'm mostly converted to the LC library, and everything seems to be working. Best options to try: 1) Download Gerard's original stack, and see what works and what breaks (and what the responses are). https://github.com/macMikey/dropboxapi_v2. This is my default choice as I have learned a lot beating on his stack. 2) lc's dropbox library has a couple of unpatched issues. One of those is only returning half of the error message when there is a failure. You can download my pathced version here: https://github.com/macMikey/LCDropboxLibrary. 2.1) If you choose to download and use my patched version, either copy/paste the script into your stack script so that it overrides LC's library, or add it as a substack/library in 8. 2.2) After the upload and download lines in your script, check both it and the result. What do those say? 2.3 does mptest already exist at / on your dropbox store? If it doesn't, you have to create the folder. 2.4 don't forget that dropboxDownload puts the contents of the file into it. You have to create the file afterwards.
On Tue, Oct 17, 2017 at 7:51 AM, pink via use-livecode < [email protected]> wrote: > So far, none of my attempts with the Dropbox script have been successful, > with the exception of create folder. > > Basically I just want to create an invisible file as a save stack, upload > it > to a folder in dropbox and then be able to download it and put it into > memory. > > So below is the script that I've most recently used. A file gets uploaded, > but it isn't the actual stack I created, I've also tried uploading directly > from the tLocalPath but that returns an error. > > Any suggestions? > > put "testdata7" into tName > put specialfolderpath("desktop") & "/" & tName & ".mpk" into tLocalPath > put "/mptest/" & tName & ".livecode" into tDBpath > > create invisible stack tName > set the testingMeData of stack tName to "123456abc" > dropboxUpload myToken, tDBPath, "overwrite", false, false, tName > clear stack tName > > dropboxDownload myToken, tDBpath > > > > > > ----- > --- > Greg (pink) Miller > mad, pink and dangerous to code > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/ > Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
