File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 5858| raster\_ mimetypes | array | Array of mime types. Thumbnails will be created only for these mimetypes. |
5959| create\_ folder\_ mode | int | Permission setting for folders created by this package. |
6060| create\_ file\_ mode | int | Permission setting for files uploaded to this package. |
61+ | should\_ change\_ file\_ mode | boolean | If true, it will attempt to chmod the file after upload |
6162| valid\_ file\_ mimetypes | array | Array of mime types. Available since v1.3.0 . |
6263
6364
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ public function save($file)
4343
4444 File::move ($ file ->getRealPath (), $ dest_file_path );
4545
46- chmod ($ dest_file_path , config ('lfm.create_file_mode ' , 0644 ));
46+ if (config ('lfm.should_change_file_mode ' , true )) {
47+ chmod ($ dest_file_path , config ('lfm.create_file_mode ' , 0644 ));
48+ }
4749 }
4850}
Original file line number Diff line number Diff line change 107107 // permissions to be set on file upload.
108108 'create_file_mode ' => 0644 ,
109109
110+ // If true, it will attempt to chmod the file after upload
111+ 'should_change_file_mode ' => true ,
112+
110113 /*
111114 |--------------------------------------------------------------------------
112115 | Thumbnail
You can’t perform that action at this time.
0 commit comments