Jump to content

Recommended Posts

Posted

Uploads a file with file action "Share via Dropbox" or keyboard from selection in Finder to Dropbox and returns public download link. 


Befory you can start: 


  • You need to get an Access Token from Dropbox (https://www.dropbox.com/developers/apps). 
  • Configure workflow variables
    • Access Token
    • Folder were the file will be stored on Dropbox

  • Download and Install JSON Helper from the Appstore

Usage: Search for a file on the file action choose "Share via Dropbox". The short URL, for public download, will be stored to the Clipboard


Download: http://www.packal.org/workflow/drop


Posted (edited)

In Alfred 3 you can open the workflow and then click on the [x] (top right corner). A dialog will pop up and you can configure both variables

Edited by Acidham
Posted (edited)

Great workflow!

 

Would it be possible to detect whether the file name already exists in the target folder (or even some adding some suffix like "-copy" to make the Dropbox upload still work)? Right now it gives an error message saying that the token is incorrect.

 

Also, the clipboard URL contains a newline at the end, could that be removed in the script?

 

[bTW, if a folder name contains a single quote, the workflow fails as well, but this is kind of a corner case.]

 

BA

Edited by bramadams
Posted

Thx @bramadams for the feedback.

 

 

 

Would it be possible to detect whether the file name already exists in the target folder (or even some adding some suffix like "-copy" to make the Dropbox upload still work)? Right now it gives an error message saying that the token is incorrect.

 

Fixed, Drop is now overwriting the file with the same file name

 

 

 

[bTW, if a folder name contains a single quote, the workflow fails as well, but this is kind of a corner case.]

 

Fixed

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...