Skip to content

Commit 6dc4e45

Browse files
committed
fixes
1 parent 2935578 commit 6dc4e45

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor/

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "oldravian/multi-source-file-uploader",
3-
"description": "A Laravel package for handling file upload from multiple sources like HTML form, file url or base64 encoded file",
3+
"description": "A Laravel package for handling file upload from multiple sources like file object, url or base64 encoded data",
44
"keywords": [
55
"laravel",
66
"file-upload",
77
"multi-source-file-upload",
8+
"upload-file-from-file-object",
89
"upload-file-from-url",
910
"upload-file-from-base64"
1011
],
@@ -13,17 +14,18 @@
1314
"authors": [
1415
{
1516
"name": "Habib urRehman",
16-
"email": "chaudryhabib2@gmail.com"
17+
"email": "chaudryhabib2@gmail.com",
18+
"homepage": "http://redravian.com"
1719
}
1820
],
1921
"minimum-stability": "dev",
2022
"prefer-stable": true,
2123
"require": {
22-
"php": "^8.0"
24+
"php": "^7.2|^8.0"
2325
},
2426
"autoload": {
2527
"psr-4": {
26-
"OldRavian\\FileUploader\\": "src/"
28+
"OldRavian\\FileUploader\\": "./vendor/multi-source-file-uploader/src/"
2729
}
2830
},
2931
"extra": {

src/Factories/FileUploaderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class FileUploaderFactory {
1717

1818
public function build($type){
1919
switch($type){
20-
case "form":
20+
case "object":
2121
return new ByForm;
2222
break;
2323
case "url":

0 commit comments

Comments
 (0)