|
2 | 2 |
|
3 | 3 | ## Routing:
|
4 | 4 |
|
5 |
| -| Key | Type | Description | |
6 |
| -|--------------------|---------|--------------------------------------------------------------------------------------------------------------| |
| 5 | +| Key | Type | Description | |
| 6 | +|----------------------|---------|--------------------------------------------------------------------------------------------------------------| |
7 | 7 | | use\_package\_routes | boolean | Use routes from package or not. If false, you will need to define routes to all controllers of this package. |
|
8 |
| -| middlewares | array | Middlewares to be applied to default routes. For laravel 5.1 and before, remove 'web' from the array. | |
9 |
| -| url_prefix | string | The url prefix to this package. Change it if necessary. | |
| 8 | +| middlewares | array | Middlewares to be applied to default routes. For laravel 5.1 and before, remove 'web' from the array. | |
| 9 | +| url_prefix | string | The url prefix to this package. Change it if necessary. | |
10 | 10 |
|
11 | 11 |
|
12 | 12 | ## Multi-User Mode:
|
13 | 13 |
|
14 |
| -| Key | Type | Description | |
15 |
| -|--------------------|---------|------------------------------------------------------------------------------------------------| |
| 14 | +| Key | Type | Description | |
| 15 | +|----------------------|---------|------------------------------------------------------------------------------------------------| |
16 | 16 | | allow\_multi\_user | boolean | If true, private folders will be created for each signed-in user. |
|
17 | 17 | | allow\_share\_folder | boolean | If true, share folder will be created. |
|
18 |
| -| user_field | string | Private folders will be named by this. Can receive column name of `users` table or class name. | |
| 18 | +| user_field | string | Private folders will be named by this. Can receive column name of `users` table or class name. | |
19 | 19 |
|
20 | 20 | ### If you want to name private folders other than columns of users table, follow these steps:
|
21 | 21 | 1. Run `php artisan vendor:publish --tag=lfm_handler`.
|
|
25 | 25 |
|
26 | 26 | ## Working Directory:
|
27 | 27 |
|
28 |
| -| Key | Type | Description | |
29 |
| -|--------------------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
30 |
| -| base_directory | string | Which folder to store files in project, fill in 'public', 'resources', 'storage' and so on. Does not support path relative path like `../public_html` or `public/upload/user/`. | |
| 28 | +| Key | Type | Description | |
| 29 | +|----------------------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 30 | +| base_directory | string | Which folder to store files in project, fill in 'public', 'resources', 'storage' and so on. Does not support path relative path like `../public_html` or `public/upload/user/`. | |
31 | 31 | | images\_folder\_name | string | Does not support path relative path like `../public_html` or `public/upload/user/`. |
|
32 | 32 | | files\_folder\_name | string | Does not support path relative path like `../public_html` or `public/upload/user/`. |
|
33 | 33 | | shared\_folder\_name | string | Does not support path relative path like `../public_html` or `public/upload/user/`. |
|
|
36 | 36 |
|
37 | 37 | ## Startup Views:
|
38 | 38 |
|
39 |
| -| Key | Type | Description | |
40 |
| -|---------------------|--------|-----------------------------------------------------------------| |
| 39 | +| Key | Type | Description | |
| 40 | +|-----------------------|--------|-----------------------------------------------------------------| |
41 | 41 | | images\_startup\_view | string | The default display type for images. Supported: "grid", "list". |
|
42 | 42 | | files\_startup\_view | string | The default display type for files. Supported: "grid", "list". |
|
43 | 43 |
|
44 | 44 |
|
45 | 45 | ## Upload / Validation:
|
46 | 46 |
|
47 |
| -| Key | Type | Description | |
48 |
| -|-------------------------|---------|--------------------------------------------------------------------------| |
49 |
| -| rename_file | string | If true, the uploaded file will be renamed to uniqid() + file extension. | |
50 |
| -| alphanumeric_filename | string | If true, non-alphanumeric file name will be replaced with `_`. | |
51 |
| -| alphanumeric_directory | boolean | If true, non-alphanumeric folder name will be rejected. | |
52 |
| -| should\_validate\_size | boolean | If true, the size of uploading file will be verified. | |
53 |
| -| max\_image\_size | int | Specify max size of uploading image. | |
54 |
| -| max\_file\_size | int | Specify max size of uploading file. | |
55 |
| -| should\_validate\_mime | boolean | If true, the mime type of uploading file will be verified. | |
56 |
| -| valid\_image\_mimetypes | array | Array of mime types. Available since v1.3.0 . | |
57 |
| -| should\_create\_thumbnails | boolean | If true, thumbnails will be created for faster loading. | |
58 |
| -| raster\_mimetypes | array | Array of mime types. Thumbnails will be created only for these mimetypes. | |
59 |
| -| create\_folder\_mode | int | Permission setting for folders created by this package. | |
60 |
| -| 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 | |
62 |
| -| valid\_file\_mimetypes | array | Array of mime types. Available since v1.3.0 . | |
| 47 | +| Key | Type | Description | |
| 48 | +|----------------------------|---------|---------------------------------------------------------------------------| |
| 49 | +| disk (Alpha version only) | string | Correspond to `disks` section in `config/filesystems.php`. | |
| 50 | +| rename_file | string | If true, the uploaded file will be renamed to uniqid() + file extension. | |
| 51 | +| alphanumeric_filename | string | If true, non-alphanumeric file name will be replaced with `_`. | |
| 52 | +| alphanumeric_directory | boolean | If true, non-alphanumeric folder name will be rejected. | |
| 53 | +| should\_validate\_size | boolean | If true, the size of uploading file will be verified. | |
| 54 | +| max\_image\_size | int | Specify max size of uploading image. | |
| 55 | +| max\_file\_size | int | Specify max size of uploading file. | |
| 56 | +| should\_validate\_mime | boolean | If true, the mime type of uploading file will be verified. | |
| 57 | +| valid\_image\_mimetypes | array | Array of mime types. Available since v1.3.0 . | |
| 58 | +| should\_create\_thumbnails | boolean | If true, thumbnails will be created for faster loading. | |
| 59 | +| raster\_mimetypes | array | Array of mime types. Thumbnails will be created only for these mimetypes. | |
| 60 | +| create\_folder\_mode | int | Permission setting for folders created by this package. | |
| 61 | +| create\_file\_mode | int | Permission setting for files uploaded to this package. | |
| 62 | +| should\_change\_file\_mode | boolean | If true, it will attempt to chmod the file after upload | |
| 63 | +| valid\_file\_mimetypes | array | Array of mime types. Available since v1.3.0 . | |
63 | 64 |
|
64 | 65 |
|
65 | 66 | ## Thumbnail dimensions:
|
66 | 67 |
|
67 |
| -| Key | Type | Description | |
68 |
| -|------------------|--------|--------------------------------------------------| |
| 68 | +| Key | Type | Description | |
| 69 | +|--------------------|--------|--------------------------------------------------| |
69 | 70 | | thumb\_img\_width | string | Width of thumbnail made when image is uploaded. |
|
70 | 71 | | thumb\_img\_height | string | Height of thumbnail made when image is uploaded. |
|
71 | 72 |
|
72 | 73 |
|
73 | 74 | ## File Extension Information
|
74 | 75 |
|
75 |
| -| Key | Type | Description | |
76 |
| -|-----------------|-------|---------------------------------------------| |
| 76 | +| Key | Type | Description | |
| 77 | +|-------------------|-------|---------------------------------------------| |
77 | 78 | | file\_type\_array | array | Map file extension with display names. |
|
78 | 79 | | file\_icon\_array | array | Map file extension with icons(font-awsome). |
|
79 | 80 |
|
80 | 81 |
|
81 | 82 | ## php.ini override
|
82 | 83 |
|
83 |
| -| Key | Type | Description | |
84 |
| -|-------------------|-----------------|-----------------------------------------------------------------------------------------------------------------------------------| |
| 84 | +| Key | Type | Description | |
| 85 | +|---------------------|------------------|-----------------------------------------------------------------------------------------------------------------------------------| |
85 | 86 | | 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 |
|
86 | 87 |
|
87 | 88 | ### Caveats
|
|
0 commit comments