Re: Need Dropbox guidance

2017-10-19 Thread Mike Kerner via use-livecode
what was wrong with the previous try? On Thu, Oct 19, 2017 at 9:36 AM, pink via use-livecode < use-livecode@lists.runrev.com> wrote: > I did have a slash in the value of tFilePath > > I'm starting to understand my confusion, we're not uploading and > downloading > files, but putting and getting d

Re: Need Dropbox guidance

2017-10-19 Thread pink via use-livecode
I did have a slash in the value of tFilePath I'm starting to understand my confusion, we're not uploading and downloading files, but putting and getting data into/from files... which is definitely more useful for what I'm trying to do. Now I've got things working and it is making sense :) ---

Re: Need Dropbox guidance

2017-10-18 Thread Mike Kerner via use-livecode
Well, I haven't been sending binary files, so check to see if what you get back is the same as what you sent up. The phx_dropbox library required encoding binary data. ALSO, don't you have to put a single slash after "binfile:"? I don't remember. On Wed, Oct 18, 2017 at 7:37 PM, pink via use-liv

Re: Need Dropbox guidance

2017-10-18 Thread pink via use-livecode
THat worked... so now how do I download the file and save it? I tried doing the opposite, but the file I got didn't come out right. dropboxDownload myToken, "/data.livecode" put it into URL ("binfile:" & tFilePath) - --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: ht

Re: Need Dropbox guidance

2017-10-18 Thread Mike Kerner via use-livecode
How are you getting the stack into pData? I just tried this, and it worked: on mouseup answer file "" put it into theFile put url ("binfile:/"&thefile) into foo dropboxUpload oauthKey, "/foo.livecodescript", "add", true, false, foo answer "it:"&&it&&CR&CR&"the result:"&&the result en

Re: Need Dropbox guidance

2017-10-18 Thread pink via use-livecode
With the upload, everything indicates that it is successful, but the file that exists is not correct, and it's size is way off. Again, I am uploading a stack that is in memory, what exactly do I need to put into "pData" in order to upload the file? example of my last upload: {"name": "mystack1.

Re: Need Dropbox guidance

2017-10-17 Thread Mike Kerner via use-livecode
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 beatin

Need Dropbox guidance

2017-10-17 Thread pink via use-livecode
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'