Skip to content

Commit 773ec3d

Browse files
update
1 parent c4069c1 commit 773ec3d

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

tests/config.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

3-
include_once "../src/ultimateUploader.php";
4-
3+
include_once __DIR__ . "/../vendor/autoload.php";
54

65
// Configure the file uploader using global function helper
76
config_file(
@@ -24,7 +23,7 @@
2423
],
2524
config: [
2625
'limit' => 1,
27-
'mime' => 'images', // video|audio|files|images|general_image|general_media|general_file
26+
'mime' => 'image', // video|audio|file|image|general_image|general_media|general_file
2827
'size' => 2097152, // 2mb
2928
'baseDir' => 'public',
3029
'driver' => 'local',

tests/index3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<div class="form-group">
4242
<label for="upload">Image</label>
4343
<input type="file" class="form-control-file" id="upload"
44-
name="avatar[]" multiple>
44+
name="avatar" multiple>
4545
</div>
4646
</div>
4747

tests/mime.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
// default is images
88

99
File::name('avatar')
10-
->mime('images');
10+
->mime('image');
1111

1212

1313
File::name('document')
14-
->mime('files');
14+
->mime('file');
1515

1616

1717

tests/others.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
// $file = File::name('avatar')
2626
// ->limit(3)
27-
// ->mime('files')
27+
// ->mime('file')
2828
// ->filter([401, 403, 500])
2929
// ->folder('public/files')
3030
// ->driver('s3')

0 commit comments

Comments
 (0)