File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ public static function upload(UploadedFile $file, array $options = [])
55
55
{
56
56
$ originalOptions = array_merge (config ('Pharaonic.uploader.options ' , []), $ options );
57
57
$ options = (object ) $ originalOptions ;
58
-
59
- $ disk = $ options[ ' disk ' ] ?? config ('Pharaonic.uploader.disk ' , 'public ' );
58
+
59
+ $ disk = $ options-> disk ?? config ('Pharaonic.uploader.disk ' , 'public ' );
60
60
$ name = $ file ->getClientOriginalName ();
61
61
$ hash = $ file ->hashName ();
62
62
if (strpos ($ hash , '. ' ) !== false ) {
@@ -134,6 +134,7 @@ public static function upload(UploadedFile $file, array $options = [])
134
134
'name ' => $ name ,
135
135
'hash ' => $ hash ,
136
136
'path ' => $ path . DIRECTORY_SEPARATOR . $ hash . $ plusName ,
137
+ 'disk ' => $ disk ,
137
138
'extension ' => $ extension ,
138
139
'mime ' => $ mime ,
139
140
'size ' => $ size ,
@@ -148,6 +149,7 @@ public static function upload(UploadedFile $file, array $options = [])
148
149
'name ' => $ name ,
149
150
'hash ' => $ hash ,
150
151
'path ' => $ path . DIRECTORY_SEPARATOR . $ hash . $ plusName ,
152
+ 'disk ' => $ disk ,
151
153
'extension ' => $ extension ,
152
154
'mime ' => $ mime ,
153
155
'size ' => $ size ,
You can’t perform that action at this time.
0 commit comments