upload/download to/from dropbox

403 views
Skip to first unread message

KASSIM SAMJI

unread,
Jul 22, 2017, 4:34:02 AM7/22/17
to mitappinv...@googlegroups.com
hello programmers...on my project with app inventor i succeeded to upload files to my dropbox account without a problem, i used a workaround from Taifun and thanks it worked like a charm

how ever i am facing a problem when it comes to downloading the file located in my root folder ( say /soccer.png )


look through the blocks, the aim is to download the file located in root folder in my dropbox account, get_the_list_picker.selection returns     /filename.extension    like    /flowers.png

once i receive error code 200 and go to /sdcard/my document/download, i find something like app_inventor.tmp, opening it with text editor, i find some bunch of codes relating to the file concerned like id number, and so on

correct me if i am wrong with the blocks so i can get the file downloaded

Thanks in advance



Taifun

unread,
Jul 22, 2017, 12:10:37 PM7/22/17
to mitappinv...@googlegroups.com
before downloading, you might want to set the filename using the ResponseFileName property

ResponseFileName
The name of the file where the response should be saved. If SaveResponse is true and ResponseFileName is empty, then a new file name will be generated.

also remove the PutFile block and change the notifier from "Downloading" to "Downloaded successfully"

Taifun

KASSIM SAMJI

unread,
Jul 23, 2017, 1:11:29 AM7/23/17
to MIT App Inventor Forum
thanks a million Taifun , you are code savior

Taifun

unread,
Jul 23, 2017, 11:00:22 AM7/23/17
to MIT App Inventor Forum
could you please post the final working solution?
this might help others, who like to do the same...
thank you

Taifun
Reply all
Reply to author
Forward
0 new messages