# AWS / S3 upload path requirements?

**URL:** <https://www.ruby-forum.com/t/aws-s3-upload-path-requirements/115645>\
**Category:** Rails\
**Created:** [September 27, 2007, 6:13am UTC](https://www.ruby-forum.com/t/aws-s3-upload-path-requirements/115645 "2007-09-27T06:13:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgrgrg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6de8d8/32.png) [@rgrgrg](https://www.ruby-forum.com/u/rgrgrg)\
**Post date:** [September 27, 2007, 6:13am UTC](https://www.ruby-forum.com/t/aws-s3-upload-path-requirements/115645/1 "2007-09-27T06:13:53Z")

</div>

Hey there,

So I’ve started using the AWS::S3 ruby library to interface (http://  
[amazon.rubyforge.org/](http://amazon.rubyforge.org/)).

I’ve installed properly, created buckets, I haven’t have any luck  
storing files with the following syntax:

file = ‘c:/path/to/file’  
S3Object.store(file, open(file), ‘bucketname’)

getting ASW:S3::RequestTimeout: errors from S3 every time. As you  
might be able to tell, I’m running Rails on a PC (boo, I know).  
However, I’ve tried uploading with several different path types, e.g.

/path/to/file  
\path\to\file  
c:/path/to/file  
c:\path\to\file

So, my question is, what are the requirements for file paths to be  
uploaded? Must the file be located on my webserver? If so, do they  
need to be in /public?  
Or, can I specify files located anywhere on c:\ ? Is this whole thing  
futile with a PC?

Thanks so much. It would be great to get this working.

---

<div class="post-metadata">

**Author:** ![rgrgrg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6de8d8/32.png) [@rgrgrg](https://www.ruby-forum.com/u/rgrgrg)\
**Post date:** [September 30, 2007, 7:54am UTC](https://www.ruby-forum.com/t/aws-s3-upload-path-requirements/115645/2 "2007-09-30T07:54:20Z")

</div>

I’m having the same problem on my PC. Please post the solution if you  
find it.
