File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,21 @@ Angular library that helps convert file (from input[type=file]) to base64/arrayB
6
6
1 . ` npm install --save fctrlx-angular-file-reader `
7
7
2 . add dependency to your project
8
8
9
- `import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
9
+ `
10
+ import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
10
11
11
12
@NgModule ({
13
+
12
14
...
15
+
13
16
imports: [
17
+
14
18
...,
19
+
15
20
FctrlxAngularFileReader,
21
+
16
22
]
23
+
17
24
})`
18
25
19
26
3 . Enjoy!
@@ -34,12 +41,19 @@ Angular library that helps convert file (from input[type=file]) to base64/arrayB
34
41
35
42
# Response
36
43
`{
44
+
37
45
name: string;//file name
46
+
38
47
size: number;//file size
48
+
39
49
type: string;//file type
50
+
40
51
base64?: string;// base64 data
52
+
41
53
text?: string;// text data
54
+
42
55
arrBuf?: any;// array buffer data
56
+
43
57
}`
44
58
45
59
You can’t perform that action at this time.
0 commit comments