Dropbox upload example

Christopher Stawarz's Avatar

Christopher Stawarz

29 Apr, 2019 07:32 PM

Hi Michael,

As you requested, I've put together a small example (attached) of how to upload to Dropbox from an MWorks experiment. I've tested in on both macOS and iOS.

The example uses a Python file resource to establish a connection to Dropbox and define an upload function. After every 10 trials, it uses a run_python_string action to invoke the upload function, which pushes an updated results file to Dropbox.

The results file is very simple: just plain text with a few numbers. Obviously, you could make it as complex as you want, upload multiple files, etc.

If you have any questions, please let me know.

Chris

  1. 1 Posted by mil on 30 Apr, 2019 07:10 PM

    mil's Avatar

    Thank you Chris! I didn't see this email because it was placed into my Junk folder automatically.

  2. Support Staff 2 Posted by Christopher Sta... on 30 Apr, 2019 07:42 PM

    Christopher Stawarz's Avatar

    Sorry about that. Maybe the big ZIP file made it look like spam?

    Did you get the other message I sent to you recently?

    Chris

  3. 3 Posted by mil on 30 Apr, 2019 07:44 PM

    mil's Avatar

    I did not. It might be the email address(es) you are using. I'll add this one to the whitelist.

  4. Support Staff 4 Posted by Christopher Sta... on 30 Apr, 2019 07:53 PM

    Christopher Stawarz's Avatar

    It might be the email address(es) you are using. I'll add this one to the whitelist.

    Every discussion has a different associated email address. You'll need to whitelist the whole tenderapp.com domain.

  5. Christopher Stawarz closed this discussion on 02 May, 2019 05:44 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac