# 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:** 7

<div class="post-metadata">

**Author:** ![benbeltran](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benbeltran/32/103438_2.png) [@benbeltran](https://meta.discourse.org/u/benbeltran)\
**Post date:** [June 3, 2013, 3:15am UTC](https://meta.discourse.org/t/storing-images-in-the-cloud/6779/7 "2013-06-03T03:15:18Z")

</div>

Hmm. I don’t get any errors. Those fixes actually fixed it for me. Is it possible that the 422 may be caused by inclusion of some other plugin? … Unprocessable entity means it didn’t pass validation, so maybe it’s going through more than one provider (e.g. s3 + imgur) and they’re borking each other? I’m only using imgur fwiw.

EDIT: Ahhh wait wait. Are you sure you’re doing `File.size(file.tempfile)`? 422 is probably caused by a FastImage Exception, you’re not seeing it because it rescues it in the controller. Test locally w/o entering the rescues to see what exception it’s bringing.

EDIT II: @cbonsig about the local file disappearing. I don’t know what you’re using to deploy, but make sure you’re uploading to a directory that is symlinked from outside of the releases dir. For example: link `project/shared/uploads => project/current/uploads` … If you’re not doing something like that, the next deploy will surely eat your uploads.

---

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