Skip to content

Commit

Permalink
refining docs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 12, 2016
1 parent 63aa1e6 commit 6a3d81d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,11 @@ There are a variety of other methods available on `UploadedFile` instances. Chec
<a name="storing-uploaded-files"></a>
### Storing Uploaded Files

To store an uploaded file, you will typically use one of your configured [filesystems](/docs/{{version}}/filesystem). The `UploadedFile` class has a `store` method which may be used to move the uploaded file to one of your disks, which may be a location on your local filesystem or even a cloud storage location such as Amazon S3.
To store an uploaded file, you will typically use one of your configured [filesystems](/docs/{{version}}/filesystem). The `UploadedFile` class has a `store` method which will move an uploaded file to one of your disks, which may be a location on your local filesystem or even a cloud storage location like Amazon S3.

The `store` method accepts the path at which the file should be stored relative to the filesystem's configured root directory. This path should not contain a file name, since the file name will automatically be generated as an MD5 hash of the file's contents. The `store` method also accepts an optional second argument for the name of the disk that should be used to store the file. The method will return the path of the file relative to the disk's root:
The `store` method accepts the path where the file should be stored relative to the filesystem's configured root directory. This path should not contain a file name, since the name will automatically be generated using the MD5 hash of the file's contents.

The `store` method also accepts an optional second argument for the name of the disk that should be used to store the file. The method will return the path of the file relative to the disk's root:

$path = $request->photo->store('images');

Expand Down

0 comments on commit 6a3d81d

Please sign in to comment.