lib/dropbox-instance.js
/**
 * Sends a URL to Dropbox to retrieve and store. The path to where the file is
 * stored is configured in the Dropbox App Console.
 * See https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesSaveUrl__anchor
 *
 * @todo test validity of URL and filename
 *
 * @param  {String} url
 * @param  {String} filename
 * @return {Promise}
 */
Sends a URL to Dropbox to retrieve and store. The path to where the file is
stored is configured in the Dropbox App Console.

@todo test validity of URL and filename

@param  {String} url
@param  {String} filename
@return {Promise}
Sends a URL to Dropbox to retrieve and store . The path to where the file is stored is configured in the Dropbox App Console . @todo test validity of URL and filename @param { String } url @param { String } filename @return { Promise }
function saveFileFromURL(url, filename) {
	if (!client) initClient()
	return client.filesSaveUrl({
		url,
		path: filename,
	})
}
function saveFileFromURL ( url , filename ) { if ( ! client ) initClient ( ) return client . filesSaveUrl ( { url , path : filename , } ) }
Sends a URL to Dropbox to retrieve and store.
Sends a URL to Dropbox to retrieve and store .