You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,7 +61,7 @@ All users can upload and manage files within shared folders. Set to `false` to t
61
61
* default:
62
62
63
63
```
64
-
'folder_categories' => [
64
+
'folder_categories' => [
65
65
'file' => [
66
66
'folder_name' => 'files',
67
67
'startup_view' => 'list',
@@ -89,65 +89,174 @@ All users can upload and manage files within shared folders. Set to `false` to t
89
89
],
90
90
```
91
91
92
-
The default config creates two folder categories, `file` and `image`, each operates independently. Files uploaded by users will be placed under one of these folder categories, depend on which is configured with your WYSIWYG editor or stand-alone upload button.
92
+
The default config creates two folder categories, `file` and `image`, each operates independently. Files uploaded by users will be placed under one of these folder categories, depend on which is configured with your WYSIWYG editor or stand-alone upload button.
| images\_startup\_view | string | The default display type for images. Supported: "grid", "list". |
99
-
| files\_startup\_view | string | The default display type for files. Supported: "grid", "list". |
96
+
*`folder_name`: The folder name of the category. For example, if `folder_name` is set to `files2` then:
97
+
* directory path of the private folder will be: `/<path-to-laravel>/storage/app/public/files2/<user-id>/`
98
+
* directory path of the shared folder will be: `/<path-to-laravel>/storage/app/public/files2/shares/`
99
+
*`startup_view`: The default display mode. Available options: `list` & `grid`.
100
+
*`max_size`: The maximum size(in KB) of of a single file to be uploaded.
101
+
*`valid_mime`: Only files with mime types listed here are allowed to be uploaded. See [full mime types list](http://docs.w3cub.com/http/basics_of_http/mime_types/complete_list_of_mime_types/).
If set to `true`, non-alphanumeric folder name will be rejected.
127
146
128
-
## Thumbnail dimensions:
147
+
### should\_validate\_size
148
+
149
+
* type: `boolean`
150
+
* default: `false`
151
+
152
+
If set to `true`, the size of uploading file will be verified.
153
+
154
+
### should\_validate\_mime
155
+
156
+
* type: `boolean`
157
+
* default: `true`
158
+
159
+
If set to `true`, the mime type of uploading file will be verified.
160
+
161
+
### over\_write\_on_duplicate
162
+
163
+
* type: `int`
164
+
* default: `false`
165
+
166
+
Define behavior on files with identical name. Setting it to `true` cause old file replace with new one. Setting it to `false` show `error-file-exist` error and abort the upload process.
167
+
168
+
## Thumbnail
169
+
170
+
### should\_create\_thumbnails
171
+
172
+
* type: `boolean`
173
+
* default: `true`
174
+
175
+
If set to `true`, thumbnails will be created for faster loading.
176
+
177
+
### thumb\_folder\_name
178
+
179
+
* type: `string`
180
+
* default: `thumbs`
181
+
182
+
Folder name to place thumbnails.
183
+
184
+
### raster\_mimetypes
185
+
186
+
* type: `array`
187
+
* default:
188
+
189
+
```
190
+
'raster_mimetypes' => [
191
+
'image/jpeg',
192
+
'image/pjpeg',
193
+
'image/png',
194
+
],
195
+
```
196
+
197
+
Create thumbnails automatically only for listed types. See [full mime types list](http://docs.w3cub.com/http/basics_of_http/mime_types/complete_list_of_mime_types/).
198
+
199
+
### thumb_img_width
200
+
201
+
* type: `int`
202
+
* default: `200`
203
+
204
+
Thumbnail images width (in px).
205
+
206
+
### thumb_img_height
207
+
208
+
* type: `int`
209
+
* default: `200`
210
+
211
+
Thumbnail images height (in px).
212
+
213
+
Create thumbnails automatically only for listed types.
| php\_ini\_overrides | array or boolean | These values override your php.ini settings before uploading files. Set these to false to ingnore and apply your php.ini settings |
245
+
### php\_ini\_overrides
246
+
247
+
* type: `array` or `boolean`
248
+
* default:
249
+
250
+
251
+
```
252
+
'php_ini_overrides' => [
253
+
'memory_limit' => '256M',
254
+
],
255
+
```
256
+
257
+
These values override your php.ini settings before uploading files. Set these to false to ingnore and apply your php.ini settings
149
258
150
-
### Caveats
259
+
⚠️ **Caveats**
151
260
152
261
The php\_ini\_overrides are applied on every request the filemanager does and are reset once the script has finished executing.
153
262
This has one drawback: any ini settings that you might want to change that apply to the request itself will not work.
0 commit comments