# Storing Images in the cloud

**URL:** <https://meta.discourse.org/t/storing-images-in-the-cloud/6779>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [May 21, 2013, 11:56pm UTC](https://meta.discourse.org/t/storing-images-in-the-cloud/6779 "2013-05-21T23:56:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cbonsig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cbonsig/32/104734_2.png) [@cbonsig](https://meta.discourse.org/u/cbonsig)\
**Post date:** [June 3, 2013, 2:47am UTC](https://meta.discourse.org/t/storing-images-in-the-cloud/6779/6 "2013-06-03T02:47:13Z")

</div>

Thanks @benbeltran! The good news: I understood your original explanation well enough to modify my code such that it was identical to the `imgur.rb` that you used. Also added the https.The bad news: my revision had the same result as your version – same error. Here’s the line that gets written to `production.log`

> Started POST “/uploads” for 75.144.241.86 at 2013-06-03 02:41:39 +0000  
> Processing by UploadsController#create as JSON  
> Parameters: {“topic\_id”=\>“1234”, “file”=\>#\<ActionDispatch::Http::UploadedFile:0x007f5b51a675a8 @content\_type=“image/png”, @headers=“Content-Disposition: form-data; name="file"; filename="filename.png"\r\nContent-Type: image/png\r\n”, @original\_filename=“filename.png”, @tempfile=#\<File:/tmp/RackMultipart20130603-25805-1b7gg7l\>\>}  
> Rendered text template (0.0ms)  
> Completed 422 Unprocessable Entity in 404ms (Views: 0.6ms | ActiveRecord: 5.1ms)

So maybe there’s something else that is contributing. If I can figure it out, I will comment again here.

---

_[View the full topic](https://meta.discourse.org/t/storing-images-in-the-cloud/6779)._
