File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3232</p >
3333
3434## Installing alpha version
35- The alpha version of ` v2.0 ` contains support of cloud storage and fresh new UI with RWD.
35+ The alpha version of ` v2.0 ` contains support for cloud storage and fresh new UI with RWD.
3636
3737 * Run ` composer require unisharp/laravel-filemanager:dev-master ` to get the latest code.
3838 * Run ` composer require unisharp/laravel-filemanager:v2.0.0-alpha8 ` to get the latest release of alpha version.
Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ public function makeDirectory()
5757 {
5858 $ this ->disk ->makeDirectory ($ this ->path , ...func_get_args ());
5959
60- $ this ->disk ->setVisibility ($ this ->path , 'public ' );
60+ // some filesystems (e.g. Google Storage, S3?) don't let you set ACLs on directories (because they don't exist)
61+ // https://cloud.google.com/storage/docs/naming#object-considerations
62+ if ($ this ->disk ->has ($ this ->path )) {
63+ $ this ->disk ->setVisibility ($ this ->path , 'public ' );
64+ }
6165 }
6266
6367 public function extension ()
Original file line number Diff line number Diff line change 267267 paramName: " upload[]" , // The name that will be used to transfer the file
268268 uploadMultiple: false ,
269269 parallelUploads: 5 ,
270+ timeout: 0 ,
270271 clickable: ' #upload-button' ,
271272 dictDefaultMessage: lang[' message-drop' ],
272273 init : function () {
You can’t perform that action at this time.
0 commit comments