# Upload an image on server

**URL:** <https://www.ruby-forum.com/t/upload-an-image-on-server/167990>\
**Category:** Ruby\
**Created:** [May 14, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/upload-an-image-on-server/167990 "2009-05-14T18:53:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gracei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f6c823/32.png) [@gracei](https://www.ruby-forum.com/u/gracei)\
**Post date:** [May 14, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/upload-an-image-on-server/167990/1 "2009-05-14T18:53:20Z")

</div>

Hello,

I am new to ruby and ruby on rails and I am looking for a way to upload  
an image on a server.  
I tried with the ruby http.post method :

http.post(‘serveraddress’, image) but it does no seem to work.

Also is there a way to send a file to a server with this method ?

Thanks !
