It's already known that with Yesod 0.10 and http-conduit it's going to a lot easier to do an HTTP proxy. However, there are other possibilities as well, such as sending a file upload directly from the user agent's HTTP request into an Amazon S3 object using the aws package via its REST API. Sweet!
2 plus ones
Shared publicly•View activity
- With pre-signed URIs, you can actually directly upload from the browser. See http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPOST.html . Note that the aws package supports pre-signed URIs, but not yet this specific method.
Of course, your method works too, and is cooler because it involves more conduits. :)Dec 31, 2011
- Very cool idea I had not realized that. I'm very happy with the code cleanup conduits have allowedDec 31, 2011