Skip to content

Commit 3f23fcb

Browse files
author
May Meow
committed
Add readme and update exception message for UploadComponent
1 parent 5e05493 commit 3f23fcb

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
v 1.1.0
2+
3+
Added support for S3 Compatible storage
4+
5+
* ADD Support for S3 Compatible storage
6+
* ADD new Component for Download files from storage
7+
* ADD new `storage_type` key into configuration for components
8+
* ADD AWS SDK to requirements
9+
* ADD `FileUpload\Exceptions\FileContentException`
10+
* ADD `LocalStorageManager` and `S3StorageManager` which handling upload and download files from storage
11+
* ADD New configuration for `S3` client (for more informations check README)
12+
* ADD `StorageConfigInterface`, `StorageManagerInterface` and `StoredFileInterface`
13+
* UPDATE Return type for `getFile()` was changed to`\FileUpload\File\StoredFileInterface` from `\Psr\Http\Message\UploadedFileInterface` Which returning more informations about file
14+
* UPDATE `UploadComponent::getFile()` from now can throw `HttpException` in case there is `Not supported storage type` in configuration

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.2

src/Controller/Component/UploadComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class UploadComponent extends Component implements StorageConfigInterface
4747
public function getFile(ServerRequest $serverRequest): StoredFileInterface
4848
{
4949
if (!in_array($this->getConfig('storage_type'), $this->_allowedStorageTypes)) {
50-
throw new \HttpException('Not allowed storage type');
50+
throw new \HttpException('Not supported storage type');
5151
}
5252

5353
/** check if storage is s3. Local storage is default one */

0 commit comments

Comments
 (0)