idk
This commit is contained in:
parent
9006459a15
commit
85f081f286
|
@ -123,8 +123,10 @@ class Storage
|
||||||
$camel = ucfirst(Container::camelize($attribute));
|
$camel = ucfirst(Container::camelize($attribute));
|
||||||
|
|
||||||
if ($file instanceof UploadedFile) {
|
if ($file instanceof UploadedFile) {
|
||||||
$file_hash .= strlen($file->getExtension()) ? '.'.$file->getExtension() : '';
|
$file_hash .= strlen($file->getClientOriginalExtension()) > 0 ? '.'.$file->getClientOriginalExtension() : '';
|
||||||
if (!is_null($storage_annotation->mime)) {
|
|
||||||
|
if (!is_null($storage_annotation->mime))
|
||||||
|
{
|
||||||
$valid = true;
|
$valid = true;
|
||||||
if (count(explode('/', $storage_annotation->mime)) > 1) {
|
if (count(explode('/', $storage_annotation->mime)) > 1) {
|
||||||
$valid = strtolower($storage_annotation->mime) == $file->getMimeType();
|
$valid = strtolower($storage_annotation->mime) == $file->getMimeType();
|
||||||
|
|
Loading…
Reference in New Issue