0

I am trying to upload an image to another server via HTTP post using carrierwave? What I understand so far is, Carrierwave supports some known cloud storage. but, in our application, we have a separate storage system with MongoDB. In order to store any file in that server, we can use HTTP post. Now, I am trying to write a client code to upload image. Is it possible to achieve by using Carrierwave or is there any other gem available?

Thanks in advance.

Peer Mohamed
  • 353
  • 1
  • 5
  • 12

2 Answers2

0

If you're using CarrierWave and MongoDB, I would use the https://github.com/jnicklas/carrierwave-mongoid gem to connect and store directory in GridFS.

Here's a good post on uploading and retrieving an image via carrier wave and gridfs: http://hafizbadrie.wordpress.com/2011/04/14/image-upload-with-carrierwave-and-mongoid-gridfs-mongodb-in-rails-3/

Jesse Wolgamott
  • 40,197
  • 4
  • 83
  • 109
  • Thanks Jesse, Even though the file system container is mongoDB, my client code will just talk to that storage system via http post url. so, in this context, i dont really care about which db is going to be my container.All i have to do is, to upload image via http post to another host – Peer Mohamed Apr 25 '12 at 10:14
-1

you need to provide your data where there is s3 data in the tutorials:

stack overflow

Community
  • 1
  • 1
p0rter
  • 961
  • 2
  • 13
  • 28