# How to upload file to server

**URL:** <https://www.ruby-forum.com/t/how-to-upload-file-to-server/92770>\
**Category:** Rails\
**Created:** [April 24, 2007, 1:20am UTC](https://www.ruby-forum.com/t/how-to-upload-file-to-server/92770 "2007-04-24T01:20:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trai\_dau\_bap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@trai\_dau\_bap](https://www.ruby-forum.com/u/trai_dau_bap)\
**Post date:** [April 24, 2007, 1:20am UTC](https://www.ruby-forum.com/t/how-to-upload-file-to-server/92770/1 "2007-04-24T01:20:26Z")

</div>

\<%submit\_tag "send"%\> how can i save the file that has been choosen to a directory in server. send\_file is the method to download file but how to upload it?

---

<div class="post-metadata">

**Author:** ![trai\_dau\_bap](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@trai\_dau\_bap](https://www.ruby-forum.com/u/trai_dau_bap)\
**Post date:** [April 24, 2007, 1:37am UTC](https://www.ruby-forum.com/t/how-to-upload-file-to-server/92770/2 "2007-04-24T01:37:04Z")

</div>

herb herb wrote:

> \<%submit\_tag "send"%\> how can i save the file that has been choosen to a directory in server. send\_file is the method to download file but how to upload it?

Your missing some more here, keyword multipart.

But a Google search will help you along. Maybe read this first

[http://www.flex888.com/2007/03/21/three-ruby-on-rails-file-upload-plugins-reviewed.html](http://www.flex888.com/2007/03/21/three-ruby-on-rails-file-upload-plugins-reviewed.html)

Stephan
