Jump to content

Recommended Posts

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


Link to comment

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
Link to comment

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

Link to comment

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...