|
38 | 38 |
|
39 | 39 | /*
|
40 | 40 | |--------------------------------------------------------------------------
|
41 |
| - | Shared folder / Private folder |
| 41 | + | Folder privacy |
42 | 42 | |--------------------------------------------------------------------------
|
43 | 43 | |
|
44 | 44 | | If both options are set to false, then shared folder will be activated.
|
45 | 45 | |
|
46 | 46 | */
|
47 | 47 |
|
48 |
| - 'allow_private_folder' => true, |
| 48 | + 'allow_private_folder' => false, |
49 | 49 |
|
50 | 50 | // Flexible way to customize client folders accessibility
|
51 | 51 | // If you want to customize client folders, publish tag="lfm_handler"
|
|
123 | 123 |
|
124 | 124 | /*
|
125 | 125 | |--------------------------------------------------------------------------
|
126 |
| - | Upload / Validation |
| 126 | + | Upload and Validation |
127 | 127 | |--------------------------------------------------------------------------
|
128 | 128 | |
|
129 | 129 | | We highly recommend you to leave alphanumeric setting by default (true)
|
|
139 | 139 | 'should_validate_size' => true,
|
140 | 140 | 'should_validate_mime' => true,
|
141 | 141 |
|
142 |
| - // behavior on files with identical name |
143 |
| - // setting it to true cause old file replace with new one |
144 |
| - // setting it to false show `error-file-exist` error and stop upload |
145 |
| - 'over_write_on_duplicate' => false, |
146 |
| - |
147 | 142 | /*
|
148 | 143 | |--------------------------------------------------------------------------
|
149 |
| - | File naming |
| 144 | + | File naming [Upload] |
150 | 145 | |--------------------------------------------------------------------------
|
151 | 146 | |
|
152 |
| - | It works only when you're uploading a new file! |
| 147 | + | 'uniqid' - Generate a unique ID (length:13) (e.g. 5e94a2653ef6a) |
| 148 | + | 'slug' - Generate friendly "slug" ("Te sT 1.txt" => "te-st-1.txt") |
153 | 149 | |
|
154 |
| - | rename_file.uniqid - Generate a unique ID (length:13) (e.g 5e94a2653ef6a) |
155 |
| - | rename_file.slug - Generate friendly "slug" ("Te sT .txt" => "te-st.txt") |
| 150 | + | 'duplicate' - behavior on files with identical name |
| 151 | + | '-%s' - create new file with postfix file.txt => file-1.txt, file-2.txt |
| 152 | + | where '%s' is number '-1', '-2' will be generated automatically |
| 153 | + | true - old file will be replaced with new one |
| 154 | + | false - will show `error-file-exist` error and stop upload |
156 | 155 | |
|
157 |
| - | Make sure that you have enabled only one feature of rename_file because |
158 |
| - | of conflicts |
| 156 | + | Note! |
| 157 | + | Make sure that you have enabled only one feature of rename_file |
| 158 | + | 'uniqid' or 'slug' because of conflicts |
159 | 159 | |
|
160 | 160 | */
|
161 | 161 |
|
162 | 162 | 'rename_file' => [
|
163 | 163 | 'uniqid' => false,
|
164 | 164 | 'slug' => true,
|
| 165 | + |
| 166 | + 'duplicate' => '-%s', |
165 | 167 | ],
|
166 | 168 |
|
167 | 169 | /*
|
168 | 170 | |--------------------------------------------------------------------------
|
169 |
| - | Compressing |
| 171 | + | Compression |
170 | 172 | |--------------------------------------------------------------------------
|
171 | 173 | |
|
172 | 174 | | Define the quality of the image. Data ranging from 0
|
173 | 175 | | (poor quality, small file) to 100 (best quality, big file).
|
174 | 176 | | Quality is only applied if you're encoding JPG format
|
175 | 177 | | since PNG compression is lossless and does not affect image quality.
|
176 | 178 | |
|
177 |
| - | Default: 90 |
178 |
| - | Recommended: 80-90 |
179 |
| - | Disable: false |
| 179 | + | 90 - default value, recommended value is between 80-90 |
| 180 | + | false - to disable compression |
180 | 181 | |
|
181 | 182 | */
|
182 | 183 |
|
|
0 commit comments