mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-07-06 04:51:32 -07:00
Added info on params option for upload()
This commit is contained in:
parent
627ce8a867
commit
66b8d1f72a
1 changed files with 2 additions and 1 deletions
|
@ -171,10 +171,11 @@ $my_space->uploadFile("path/to/my/file.txt", "path/on/space.txt", "private");
|
|||
$my_space = Spaces("ACCESS KEY", "SECRET KEY")->space("my_space", "nyc3");
|
||||
|
||||
//Upload a local stored file.
|
||||
$my_space->upload("my content", "path/on/space.txt", "private");
|
||||
$my_space->upload("my content", "path/on/space.txt", "private", ["ContentType" => "text/plain"]);
|
||||
```
|
||||
* The first argument (Content) can be a string, but it can also be a StreamInterface or PHP stream resource.
|
||||
* The third argument (File privacy) is optional. It defaults to private.
|
||||
* The fourth argument (Params) is optional. You can find the options [here](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#upload-property).
|
||||
* Returns available info on the file.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue