News for hackers. Stuff that matters.
Re:Dropbox Uploader: Bash script to upload, download, list, ... by derefr on Monday August 05, 2013 @12:56AM (#6158548)
The one tool I constantly wish for is something like Hyperdesktop (http://gethyperdesktop.com/) 's entry on the Windows "Send To..." menu: something that takes a file on your drive, pushes it anonymously to a file-hosting site (where it'll expire as soon as people stop looking at it for a while), and then puts a link directly to the file on your clipboard. But, you know, for all file-types, not just images.

I can currently do this using Dropbox, but it's rather a hassle; the quickest method I've found is to use the web client[1], navigate to my Public folder, drop a file onto it, wait for it to upload, then right-click -> Copy Public Link.

Making that one step would be wonderful. Making the link a "promise"[2], so I don't have to do synchronous clipboard gymnastics when I'm trying to get multiple links at a time, would be even better.

Droplr (https://droplr.com/hello) is pretty similar to all this--but it doesn't do direct links, so my most common usage-pattern for it (treating it as an "I need a CDN to show people this image/audio/video for the next 30 seconds or so, then it can disappear" service) is mooted. Dropbox also changed their service to remove Public folders for new users, with the "shared files" in its place having the same wrapper+HTML embedded file design.

Temporary hotlinking of my own content is important; I'm willing to pay for it!

---

[1] The Dropbox native client's uploading thread is optimized for background "forget about it, it'll just be magically synced later" processing, not synchronous use. The web client lets you upload as fast as your web-browser can manage.

[2] A "promise" link would be something like--if the file hasn't finished uploading yet, figure out whether the User Agent is a human or a script/bot. If it's a script/bot, just let their connection sit open until the file finishes (they won't mind.) If the user-agent is human, however, immediately return a 408 (Timeout) error with HTML body content showing a spinner. Estimate time-to-completion plus a little bit, and put that time into an HTTP "Refresh" header. (Remember those?)

Re:Dropbox Uploader: Bash script to upload, download, list, ... by abemassry on Monday August 05, 2013 @01:16AM (#6158594)
check out https://wsend.net I just launched it and it might be what you're looking for. It is anonymous for small files, but you can purchase an account if you'd like to support the service. I would greatly appreciate any feedback and or purchasing of an account. Thanks!
Re:Dropbox Uploader: Bash script to upload, download, list, ... by jamestnz on Monday August 05, 2013 @01:55AM (#6158664)
Looks useful! And in regards to GP's specific request "...and then puts a link directly to the file on your clipboard", on the Mac at least you could do so like this:

$ wsend README.md | pbcopy

I mention it because I've found that many Mac users, including some fairly Terminal-savvy folks, are unaware of the pbcopy and pbpaste tools for manipulating the clipboard.

Re:Dropbox Uploader: Bash script to upload, download, list, ... by joelg236 on Monday August 05, 2013 @02:21AM (#6158715)
This is very awesome. I'm going to start using this, and at some point I might consider buying one of the payed accounts.

Thanks.

Re:Dropbox Uploader: Bash script to upload, download, list, ... by unknownian on Monday August 05, 2013 @02:41AM (#6158750)
I know you want to make money, but consider making a self-hosted version, you could even charge for it.
Re:Dropbox Uploader: Bash script to upload, download, list, ... by jmathai on Monday August 05, 2013 @03:12AM (#6158819)
From my experience (building a SaaS product for consumers which can be self installed) it's not worth the hassle and most people who claim they'd pay actually don't.

It seems that the best way to get people to pay for something is to make it a requirement (to use the service or a set of features).

Re:Dropbox Uploader: Bash script to upload, download, list, ... by unknownian on Monday August 05, 2013 @04:53PM (#6162939)
Alright, but I'd just use some free software alternative on my server.
Re:Dropbox Uploader: Bash script to upload, download, list, ... by jmathai on Monday August 05, 2013 @11:13PM (#6164605)
That supports my statement. People will usually go free if given the option.

What I'm building is free, it is Apache2 licensed. The fact is that the self install userbase just isn't that monetizable. So the cost of supporting them is a net negative.

We do it but it is not our first, second or even third priority as a company.

Re:Dropbox Uploader: Bash script to upload, download, list, ... by 69_years_and on Monday August 05, 2013 @01:25AM (#6158613)
Like it - esp. the reference to xkcd.
Re:Dropbox Uploader: Bash script to upload, download, list, ... by akx on Monday August 05, 2013 @06:54AM (#6159399)
Modulo the promise links and other fanciness, this could be done really cheaply with S3's expiring content/links feature and a short script... I'm envisioning a CLI like this.

    $ linkme -e 1h picture.jpg
    https://s3.amazonaws.com/.../.../?ugly_url
    $ linkme --expires 1h --shorten picture.jpg
    http://bit.ly/something
The promise links would take a little more logic server-side, I think.
Re:Dropbox Uploader: Bash script to upload, download, list, ... by tekacs on Monday August 05, 2013 @10:22AM (#6160238)
CloudApp has already been mentioned (and the 'counterpoint' of anonymity has come up), but I might suggest that it's worth at least a cursory look, if nothing else because its copied links:

http://cl.ly/image/3j0h340v0O2E

can trivially be turned into direct links by appending '/content':

http://cl.ly/image/3j0h340v0O2E/content

I do this all the time - the /content links 301 redirect to the asset uploaded, so you can usually do everything from hotlink as stylesheets to enter the link into video players to stream from.

Files are up to 25MB free, 250MB paid and especially when paid, the unlimited files policy means that I no longer even stop to decide whether or not to upload files.

Just a satisfied customer. :P

Re:Dropbox Uploader: Bash script to upload, download, list, ... by damian2000 on Monday August 05, 2013 @03:09AM (#6158812)
Last time I used it box.net had something like this - you get a public url that anyone (eg. not registered users) can click to download your file. You can set a timeout and/or download limit before the link becomes disabled.
Re:Dropbox Uploader: Bash script to upload, download, list, ... by coolnow on Monday August 05, 2013 @08:01AM (#6159598)
In Windows, you can make a simple bat file that gets your dropbox id (the numbers that show up in your public links), copy/move the files to your dropbox public dir, then add the dropbox public link to your clipboard complete with the id. It's really basic and really hacky, but you can move it to the appropriate folder so it shows up when you right click > send to. I have one somewhere and it even 7zips everything up before moving.
Re:Dropbox Uploader: Bash script to upload, download, list, ... by GuHmo on Monday August 05, 2013 @02:52AM (#6158775)
I'm using ShareX (http://code.google.com/p/sharex/) for some time now and find it really great. You can configure different upload services for each filetype.
Re:Dropbox Uploader: Bash script to upload, download, list, ... by tuananh on Monday August 05, 2013 @12:58AM (#6158554)
EDIT: i didn't notice the 'annonymously' part but Dropbox isn't anonymous either --- isn't that what's CloudApp and Droplr doing?
Re:Dropbox Uploader: Bash script to upload, download, list, ... by derefr on Monday August 05, 2013 @01:10AM (#6158579)
Dropbox is "pseudonomous-but-it's-a-hassle" -- you can register a new free Dropbox account with a temporary email, and then upload to its storage solely through the web client (avoiding the "only one account synced to your computer user-profile at a time" requirement.)

But yes, actual anonymity, like Imgur has (no need to register an account, just low limits and quick expirations) would be much better.