# Uploading file directly to the server

**URL:** <https://www.ruby-forum.com/t/uploading-file-directly-to-the-server/103609>\
**Category:** Ruby\
**Created:** [May 8, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/uploading-file-directly-to-the-server/103609 "2007-05-08T12:58:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lomafor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/df788c/32.png) [@lomafor](https://www.ruby-forum.com/u/lomafor)\
**Post date:** [May 8, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/uploading-file-directly-to-the-server/103609/1 "2007-05-08T12:58:26Z")

</div>

hello everyone,

My problem is how to upload .txt file directly to the server. I wonder  
if there is cgi script in ruby that first check a .txt file in a folder  
in your local machine then if it exist it will be uploaded directly to  
the server without using any forms and no html. I think a cgi script can  
do that but i dont know how to start?

thanks
