I am creating a javascript routine that requires me to download and upload updated files in my dropbox app file folders which contains updated football picks. I am able to upload files to my app but when I try to upload I get an undefined error.

file path :

download functions (I tried both of these) :

Both of these functions return the same error :

Any assistance would be greatly appreciated. Thanks.