News for hackers. Stuff that matters.
Re:The Dropbox API by euroclydon on Friday October 21, 2011 @03:12PM (#3141205)
Seems like its all server code. It'd be nice to do x-domain posts straight from the browser to Dropbox.
Re:The Dropbox API by Timothee on Friday October 21, 2011 @03:47PM (#3141350)
Though it's still a young project, you might be interested in Unhosted: http://unhosted.org/

It's an OSS project that kind of aims at doing that kind of stuff. (if I'm not mistaking your post)

Re:The Dropbox API by jaredsohn on Friday October 21, 2011 @04:15PM (#3141469)
If it is not possible, I think it is more a web programming limitation rather than Dropbox failing to implement something.

Everything their SDKs do can also be done using their REST API (https://www.dropbox.com/developers/reference/api) and they support JSONP to allow cross-domain GET queries. However, my understanding is that JSONP is not supported for other REST methods, most importantly POSTs. A person claims to have found a workaround for doing POSTs via JSONP here: http://stackoverflow.com/questions/5345493/using-put-post-de....

Has anyone tried that or know of a way to do cross-domain POSTs?

Re:The Dropbox API by IgorPartola on Friday October 21, 2011 @04:52PM (#3141645)
You can do cross-domain POSTs. You just cannot get a response from the server. Often times though you can get the length of the response. This can be used to do a POST to change settings on an unsecured Wi-Fi routers, for example and checking whether the call succeeded or not by the length of the response.

The method described in the SO answer is similar, from what I can tell, to what DISQUS uses. I believe they call it JSONPI: http://alexsexton.com/thirdparty/#forms-are-cool-too

Re:The Dropbox API by avolcano on Friday October 21, 2011 @03:31PM (#3141285)
This would be incredible. Web apps that are 100% HTML5/Javascript/LocalStorage could then use Dropbox to store/retrieve data in the cloud.
Re:The Dropbox API by euroclydon on Friday October 21, 2011 @03:42PM (#3141324)
I'm hoping someone will tell me why it's a security problem, but yeah, for a whole slew of apps, I'd like eliminate server logic or at least make it simple to swap out backends.
Re:The Dropbox API by temphn on Friday October 21, 2011 @04:07PM (#3141438)
How would that differ from S3? Is the concept that people would also have a better local UI on their data directory?
Re:The Dropbox API by jaredsohn on Friday October 21, 2011 @04:17PM (#3141478)
It is much cheaper to scale an application putting data onto peoples' Dropbox folders instead of S3. For S3, you would have to pay for the total amount of storage used by your customers; with Dropbox you wouldn't have to pay anything for storage, and for the most part your users wouldn't have to either since each gets a certain amount for free.
Re:The Dropbox API by avolcano on Friday October 21, 2011 @04:55PM (#3141658)
Exactly. With Dropbox, you're making storage the customer's problem and not yours. You could argue this is bad for the customer, but you end up with a web app with next-to-no server overhead: just serve your static files and everything else is taken care of. No different than the many mobile apps that sync to iCloud/Dropbox already.