Something I threw together over the weekend. I've been using filepicker on a website of mine. Realized that I could hack it to upload and share files in a simple tool.<p>Inspired by cloudApp, when I found myself wanting a command line version.
Seems like this could be done with more respect for user/data sovereignty if done with Node.js. Essentially, you'd cat the file into the script, it would spin up an HTTP server, do some port knocking or whatever NAT-traversal-fu is necessary, then spit out a link with either your raw IP, or a preconfigured dynDNS domain name.<p>This way we aren't carelessly littering our data all over the "cloud".
Nice work and very handy.<p>I hadn't come across filepicker.io before and reading through the geturl code something jumped out at me:<p>APIKEY = check_output(['curl', '--silent', "%(fpurl)s/getKey?email=%(email)s" % {'fpurl': FPAPIURL, 'email': email}])<p>From that, it looks like any random person can fill up your filepicker.io space providing they have your API key or know the email address you used to register the account with. Made sense when I read a bit more about what filepicker.io actually does (i.e. a client-side embeddable javascript file uploader) but it's something to be aware of (especially if you link your account up to an S3 backend!).
I have no idea why I haven't installed xsel already. The help mentions a secondary clipboard. X has a secondary clipboard? Is there a way to paste that (like middle click for the primary)?
Since I have web hosting and use GitHub, here's my method:<p><pre><code> cp file_name ~/Projects/2012/ajf.me/ajf.me/imagedump/ && cd ~/Projects/2012/ajf.me/ajf.me/ && git add imagedump && git commit -m 'new file' && cd .. && ./update.sh
</code></pre>
Elaborate, sure, but it does the job. update.sh runs git push and then does an SSH into my server and a git pull. (Because I'm too lazy to actually set up git on my own server)
This is awesome, it actually makes filepicker.io useful for me. My main use-case for Dropbox has turned out to be for this kind of sharing... geturl is waaaaaay easier.
This a nice nifty script. Thanks!<p>Something I noticed (<a href="https://www.filepicker.io/pricing/" rel="nofollow">https://www.filepicker.io/pricing/</a>):
Since filepicker.io charges by number of files and NOT by total size of files, a free account could potentially host a huge amount of data.<p>Eg: 5000 files, each of 1 GB = 5 TB!!!
It couldn't handle files with spaces, plus the link it gives initiates a download for the file instead allowing you to view it in the browser. Considering most of the time I want to quickly upload a file in this manner the file is a screenshot, this is basically useless for me.
What about storage usage?<p><pre><code> > To make it easier to get started, if you haven't
> put in your S3 credentials we will store them on
> our servers, but as your usage increases we will
> ask you to move to your own storage.</code></pre>
Nice tool, I made something similar for dropbox a while back that symlinks/copies files into your DB folder.<p><a href="https://github.com/BRMatt/dotfiles/blob/master/bin/dropup" rel="nofollow">https://github.com/BRMatt/dotfiles/blob/master/bin/dropup</a>
Inspired by geturl, I built this: <a href="http://news.ycombinator.com/item?id=4626779" rel="nofollow">http://news.ycombinator.com/item?id=4626779</a><p>pro: no storage backend needed
con: works only behind a UPnP router (most are ok)
I really liked it, so I ported it to perl implementing a basic caching system (SHA1), I hope you don't mind: <a href="https://github.com/psychotropic/Get--Url/" rel="nofollow">https://github.com/psychotropic/Get--Url/</a>
I still prefer Dropbox because you have better control about what you upload.<p>Simply copy your files into ~/Dropbox/Public, right-click and choose Dropbox > Copy Public URL. Voilà!