minor fix
parent
d28e5f2191
commit
022a9ec5bc
|
|
@ -108,7 +108,7 @@ class UploadFileController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function uploadFromDirectFile($attributes = []) {
|
protected function uploadFromDirectFile($attributes = []) {
|
||||||
Storage::put("validating/{$attributes['name']}", $attributes['content']);
|
Storage::put("validating/" . $attributes['name'] ?? 'unnamed', $attributes['content']);
|
||||||
$this->validateMime($attributes['mime']);
|
$this->validateMime($attributes['mime']);
|
||||||
$this->validateBodySize($attributes['Content-Length'], $attributes['content']);
|
$this->validateBodySize($attributes['Content-Length'], $attributes['content']);
|
||||||
$path = $this->storeInFileSystem($attributes);
|
$path = $this->storeInFileSystem($attributes);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue