@breautek/storm 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/docs/README.md +28 -20
- package/docs/classes/Application.md +158 -76
- package/docs/classes/BackendAuthenticationMiddleware.md +3 -3
- package/docs/classes/CORSMiddleware.md +8 -8
- package/docs/classes/ConfigLoader.md +1 -1
- package/docs/classes/Database.md +12 -12
- package/docs/classes/DatabaseConnection.md +42 -40
- package/docs/classes/DatabaseQueryError.md +22 -18
- package/docs/classes/DeadLockError.md +349 -0
- package/docs/classes/DiskSpaceError.md +20 -18
- package/docs/classes/DropTemporaryTableQuery.md +8 -8
- package/docs/classes/DumpStream.md +1 -1
- package/docs/classes/DuplicateEntryError.md +20 -18
- package/docs/classes/EntityNotFoundError.md +20 -18
- package/docs/classes/ExpiredTokenError.md +20 -18
- package/docs/classes/Handler.md +14 -14
- package/docs/classes/InternalError.md +20 -18
- package/docs/classes/InvalidCredentialsError.md +20 -18
- package/docs/classes/InvalidValueError.md +20 -18
- package/docs/classes/ManagedDatabaseConnection.md +19 -19
- package/docs/classes/Middleware.md +3 -3
- package/docs/classes/MissingConfigError.md +20 -18
- package/docs/classes/MissingParameterError.md +20 -18
- package/docs/classes/MySQLConnection.md +73 -43
- package/docs/classes/MySQLDatabase.md +13 -13
- package/docs/classes/NotImplementedError.md +20 -18
- package/docs/classes/Query.md +8 -8
- package/docs/classes/RawError.md +20 -20
- package/docs/classes/RawQuery.md +8 -8
- package/docs/classes/Request.md +18 -18
- package/docs/classes/Response.md +11 -11
- package/docs/classes/ResponseData.md +7 -7
- package/docs/classes/ServiceProvider.md +15 -15
- package/docs/classes/ServiceResponse.md +4 -4
- package/docs/classes/SetSessionVariableQuery.md +8 -8
- package/docs/classes/StormError.md +20 -18
- package/docs/classes/TemporaryTableQuery.md +8 -8
- package/docs/classes/Token.md +2 -2
- package/docs/classes/TokenManager.md +4 -4
- package/docs/classes/UnauthorizedAccessError.md +20 -18
- package/docs/enums/ErrorCode.md +18 -18
- package/docs/enums/ExitCode.md +4 -4
- package/docs/enums/HTTPMethod.md +8 -8
- package/docs/enums/JWTError.md +4 -4
- package/docs/enums/StatusCode.md +96 -96
- package/docs/interfaces/IConfig.md +8 -8
- package/docs/interfaces/IDatabaseConfig.md +6 -6
- package/docs/interfaces/IDatabaseConnection.md +14 -14
- package/docs/interfaces/IErrorResponse.md +5 -5
- package/docs/interfaces/IFormData.md +2 -2
- package/docs/interfaces/IHandler.md +1 -1
- package/docs/interfaces/IInsertQueryResult.md +3 -3
- package/docs/interfaces/IJWTVerifyOptions.md +1 -1
- package/docs/interfaces/IRequestResponse.md +2 -2
- package/docs/interfaces/ISetSessionVariableQueryInput.md +2 -2
- package/docs/interfaces/ITemporaryTableQueryInput.md +2 -2
- package/docs/interfaces/IUpdateQueryResult.md +2 -2
- package/docs/interfaces/formidable.File.md +3 -1
- package/docs/interfaces/formidable.FileJSON.md +3 -1
- package/docs/interfaces/formidable.Options.md +33 -11
- package/docs/interfaces/formidable.Part.md +65 -35
- package/lib/DeadLockError.d.ts +6 -0
- package/lib/DeadLockError.js +26 -0
- package/lib/DeadLockError.js.map +1 -0
- package/lib/MySQLConnection.js +9 -1
- package/lib/MySQLConnection.js.map +1 -1
- package/lib/api.d.ts +1 -0
- package/lib/api.js +3 -1
- package/lib/api.js.map +1 -1
- package/package.json +19 -18
- package/src/DeadLockError.ts +22 -0
- package/src/MySQLConnection.ts +11 -1
- package/src/api.ts +1 -0
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
#### Defined in
|
|
29
29
|
|
|
30
|
-
[src/IDatabaseConfig.ts:21](https://github.com/breautek/storm/blob/
|
|
30
|
+
[src/IDatabaseConfig.ts:21](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConfig.ts#L21)
|
|
31
31
|
|
|
32
32
|
___
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ ___
|
|
|
37
37
|
|
|
38
38
|
#### Defined in
|
|
39
39
|
|
|
40
|
-
[src/IDatabaseConfig.ts:19](https://github.com/breautek/storm/blob/
|
|
40
|
+
[src/IDatabaseConfig.ts:19](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConfig.ts#L19)
|
|
41
41
|
|
|
42
42
|
___
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ ___
|
|
|
47
47
|
|
|
48
48
|
#### Defined in
|
|
49
49
|
|
|
50
|
-
[src/IDatabaseConfig.ts:18](https://github.com/breautek/storm/blob/
|
|
50
|
+
[src/IDatabaseConfig.ts:18](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConfig.ts#L18)
|
|
51
51
|
|
|
52
52
|
___
|
|
53
53
|
|
|
@@ -57,7 +57,7 @@ ___
|
|
|
57
57
|
|
|
58
58
|
#### Defined in
|
|
59
59
|
|
|
60
|
-
[src/IDatabaseConfig.ts:23](https://github.com/breautek/storm/blob/
|
|
60
|
+
[src/IDatabaseConfig.ts:23](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConfig.ts#L23)
|
|
61
61
|
|
|
62
62
|
___
|
|
63
63
|
|
|
@@ -67,7 +67,7 @@ ___
|
|
|
67
67
|
|
|
68
68
|
#### Defined in
|
|
69
69
|
|
|
70
|
-
[src/IDatabaseConfig.ts:20](https://github.com/breautek/storm/blob/
|
|
70
|
+
[src/IDatabaseConfig.ts:20](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConfig.ts#L20)
|
|
71
71
|
|
|
72
72
|
___
|
|
73
73
|
|
|
@@ -77,4 +77,4 @@ ___
|
|
|
77
77
|
|
|
78
78
|
#### Defined in
|
|
79
79
|
|
|
80
|
-
[src/IDatabaseConfig.ts:22](https://github.com/breautek/storm/blob/
|
|
80
|
+
[src/IDatabaseConfig.ts:22](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConfig.ts#L22)
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
#### Defined in
|
|
46
46
|
|
|
47
|
-
[src/IDatabaseConnection.ts:29](https://github.com/breautek/storm/blob/
|
|
47
|
+
[src/IDatabaseConnection.ts:29](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L29)
|
|
48
48
|
|
|
49
49
|
___
|
|
50
50
|
|
|
@@ -58,7 +58,7 @@ ___
|
|
|
58
58
|
|
|
59
59
|
#### Defined in
|
|
60
60
|
|
|
61
|
-
[src/IDatabaseConnection.ts:33](https://github.com/breautek/storm/blob/
|
|
61
|
+
[src/IDatabaseConnection.ts:33](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L33)
|
|
62
62
|
|
|
63
63
|
___
|
|
64
64
|
|
|
@@ -72,7 +72,7 @@ ___
|
|
|
72
72
|
|
|
73
73
|
#### Defined in
|
|
74
74
|
|
|
75
|
-
[src/IDatabaseConnection.ts:23](https://github.com/breautek/storm/blob/
|
|
75
|
+
[src/IDatabaseConnection.ts:23](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L23)
|
|
76
76
|
|
|
77
77
|
___
|
|
78
78
|
|
|
@@ -86,7 +86,7 @@ ___
|
|
|
86
86
|
|
|
87
87
|
#### Defined in
|
|
88
88
|
|
|
89
|
-
[src/IDatabaseConnection.ts:22](https://github.com/breautek/storm/blob/
|
|
89
|
+
[src/IDatabaseConnection.ts:22](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L22)
|
|
90
90
|
|
|
91
91
|
___
|
|
92
92
|
|
|
@@ -100,7 +100,7 @@ ___
|
|
|
100
100
|
|
|
101
101
|
#### Defined in
|
|
102
102
|
|
|
103
|
-
[src/IDatabaseConnection.ts:26](https://github.com/breautek/storm/blob/
|
|
103
|
+
[src/IDatabaseConnection.ts:26](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L26)
|
|
104
104
|
|
|
105
105
|
___
|
|
106
106
|
|
|
@@ -114,7 +114,7 @@ ___
|
|
|
114
114
|
|
|
115
115
|
#### Defined in
|
|
116
116
|
|
|
117
|
-
[src/IDatabaseConnection.ts:30](https://github.com/breautek/storm/blob/
|
|
117
|
+
[src/IDatabaseConnection.ts:30](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L30)
|
|
118
118
|
|
|
119
119
|
___
|
|
120
120
|
|
|
@@ -128,7 +128,7 @@ ___
|
|
|
128
128
|
|
|
129
129
|
#### Defined in
|
|
130
130
|
|
|
131
|
-
[src/IDatabaseConnection.ts:24](https://github.com/breautek/storm/blob/
|
|
131
|
+
[src/IDatabaseConnection.ts:24](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L24)
|
|
132
132
|
|
|
133
133
|
___
|
|
134
134
|
|
|
@@ -142,7 +142,7 @@ ___
|
|
|
142
142
|
|
|
143
143
|
#### Defined in
|
|
144
144
|
|
|
145
|
-
[src/IDatabaseConnection.ts:32](https://github.com/breautek/storm/blob/
|
|
145
|
+
[src/IDatabaseConnection.ts:32](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L32)
|
|
146
146
|
|
|
147
147
|
___
|
|
148
148
|
|
|
@@ -163,7 +163,7 @@ ___
|
|
|
163
163
|
|
|
164
164
|
#### Defined in
|
|
165
165
|
|
|
166
|
-
[src/IDatabaseConnection.ts:27](https://github.com/breautek/storm/blob/
|
|
166
|
+
[src/IDatabaseConnection.ts:27](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L27)
|
|
167
167
|
|
|
168
168
|
___
|
|
169
169
|
|
|
@@ -177,7 +177,7 @@ ___
|
|
|
177
177
|
|
|
178
178
|
#### Defined in
|
|
179
179
|
|
|
180
|
-
[src/IDatabaseConnection.ts:34](https://github.com/breautek/storm/blob/
|
|
180
|
+
[src/IDatabaseConnection.ts:34](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L34)
|
|
181
181
|
|
|
182
182
|
___
|
|
183
183
|
|
|
@@ -197,7 +197,7 @@ ___
|
|
|
197
197
|
|
|
198
198
|
#### Defined in
|
|
199
199
|
|
|
200
|
-
[src/IDatabaseConnection.ts:21](https://github.com/breautek/storm/blob/
|
|
200
|
+
[src/IDatabaseConnection.ts:21](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L21)
|
|
201
201
|
|
|
202
202
|
___
|
|
203
203
|
|
|
@@ -217,7 +217,7 @@ ___
|
|
|
217
217
|
|
|
218
218
|
#### Defined in
|
|
219
219
|
|
|
220
|
-
[src/IDatabaseConnection.ts:25](https://github.com/breautek/storm/blob/
|
|
220
|
+
[src/IDatabaseConnection.ts:25](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L25)
|
|
221
221
|
|
|
222
222
|
___
|
|
223
223
|
|
|
@@ -231,7 +231,7 @@ ___
|
|
|
231
231
|
|
|
232
232
|
#### Defined in
|
|
233
233
|
|
|
234
|
-
[src/IDatabaseConnection.ts:31](https://github.com/breautek/storm/blob/
|
|
234
|
+
[src/IDatabaseConnection.ts:31](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L31)
|
|
235
235
|
|
|
236
236
|
___
|
|
237
237
|
|
|
@@ -253,4 +253,4 @@ ___
|
|
|
253
253
|
|
|
254
254
|
#### Defined in
|
|
255
255
|
|
|
256
|
-
[src/IDatabaseConnection.ts:28](https://github.com/breautek/storm/blob/
|
|
256
|
+
[src/IDatabaseConnection.ts:28](https://github.com/breautek/storm/blob/0875c73/src/IDatabaseConnection.ts#L28)
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
#### Defined in
|
|
22
22
|
|
|
23
|
-
[src/StormError.ts:37](https://github.com/breautek/storm/blob/
|
|
23
|
+
[src/StormError.ts:37](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L37)
|
|
24
24
|
|
|
25
25
|
___
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ ___
|
|
|
30
30
|
|
|
31
31
|
#### Defined in
|
|
32
32
|
|
|
33
|
-
[src/StormError.ts:38](https://github.com/breautek/storm/blob/
|
|
33
|
+
[src/StormError.ts:38](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L38)
|
|
34
34
|
|
|
35
35
|
___
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ ___
|
|
|
40
40
|
|
|
41
41
|
#### Defined in
|
|
42
42
|
|
|
43
|
-
[src/StormError.ts:36](https://github.com/breautek/storm/blob/
|
|
43
|
+
[src/StormError.ts:36](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L36)
|
|
44
44
|
|
|
45
45
|
___
|
|
46
46
|
|
|
@@ -50,7 +50,7 @@ ___
|
|
|
50
50
|
|
|
51
51
|
#### Defined in
|
|
52
52
|
|
|
53
|
-
[src/StormError.ts:35](https://github.com/breautek/storm/blob/
|
|
53
|
+
[src/StormError.ts:35](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L35)
|
|
54
54
|
|
|
55
55
|
___
|
|
56
56
|
|
|
@@ -60,4 +60,4 @@ ___
|
|
|
60
60
|
|
|
61
61
|
#### Defined in
|
|
62
62
|
|
|
63
|
-
[src/StormError.ts:34](https://github.com/breautek/storm/blob/
|
|
63
|
+
[src/StormError.ts:34](https://github.com/breautek/storm/blob/0875c73/src/StormError.ts#L34)
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
#### Defined in
|
|
19
19
|
|
|
20
|
-
[src/IFormData.ts:20](https://github.com/breautek/storm/blob/
|
|
20
|
+
[src/IFormData.ts:20](https://github.com/breautek/storm/blob/0875c73/src/IFormData.ts#L20)
|
|
21
21
|
|
|
22
22
|
___
|
|
23
23
|
|
|
@@ -27,4 +27,4 @@ ___
|
|
|
27
27
|
|
|
28
28
|
#### Defined in
|
|
29
29
|
|
|
30
|
-
[src/IFormData.ts:21](https://github.com/breautek/storm/blob/
|
|
30
|
+
[src/IFormData.ts:21](https://github.com/breautek/storm/blob/0875c73/src/IFormData.ts#L21)
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[src/IInsertQueryResult.ts:19](https://github.com/breautek/storm/blob/
|
|
21
|
+
[src/IInsertQueryResult.ts:19](https://github.com/breautek/storm/blob/0875c73/src/IInsertQueryResult.ts#L19)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[src/IInsertQueryResult.ts:20](https://github.com/breautek/storm/blob/
|
|
31
|
+
[src/IInsertQueryResult.ts:20](https://github.com/breautek/storm/blob/0875c73/src/IInsertQueryResult.ts#L20)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,4 +38,4 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[src/IInsertQueryResult.ts:18](https://github.com/breautek/storm/blob/
|
|
41
|
+
[src/IInsertQueryResult.ts:18](https://github.com/breautek/storm/blob/0875c73/src/IInsertQueryResult.ts#L18)
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
#### Defined in
|
|
26
26
|
|
|
27
|
-
[src/IRequestResponse.ts:21](https://github.com/breautek/storm/blob/
|
|
27
|
+
[src/IRequestResponse.ts:21](https://github.com/breautek/storm/blob/0875c73/src/IRequestResponse.ts#L21)
|
|
28
28
|
|
|
29
29
|
___
|
|
30
30
|
|
|
@@ -34,4 +34,4 @@ ___
|
|
|
34
34
|
|
|
35
35
|
#### Defined in
|
|
36
36
|
|
|
37
|
-
[src/IRequestResponse.ts:22](https://github.com/breautek/storm/blob/
|
|
37
|
+
[src/IRequestResponse.ts:22](https://github.com/breautek/storm/blob/0875c73/src/IRequestResponse.ts#L22)
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
#### Defined in
|
|
19
19
|
|
|
20
|
-
[src/SetSessionVariableQuery.ts:7](https://github.com/breautek/storm/blob/
|
|
20
|
+
[src/SetSessionVariableQuery.ts:7](https://github.com/breautek/storm/blob/0875c73/src/SetSessionVariableQuery.ts#L7)
|
|
21
21
|
|
|
22
22
|
___
|
|
23
23
|
|
|
@@ -27,4 +27,4 @@ ___
|
|
|
27
27
|
|
|
28
28
|
#### Defined in
|
|
29
29
|
|
|
30
|
-
[src/SetSessionVariableQuery.ts:8](https://github.com/breautek/storm/blob/
|
|
30
|
+
[src/SetSessionVariableQuery.ts:8](https://github.com/breautek/storm/blob/0875c73/src/SetSessionVariableQuery.ts#L8)
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
#### Defined in
|
|
19
19
|
|
|
20
|
-
[src/TemporaryTableQuery.ts:22](https://github.com/breautek/storm/blob/
|
|
20
|
+
[src/TemporaryTableQuery.ts:22](https://github.com/breautek/storm/blob/0875c73/src/TemporaryTableQuery.ts#L22)
|
|
21
21
|
|
|
22
22
|
___
|
|
23
23
|
|
|
@@ -27,4 +27,4 @@ ___
|
|
|
27
27
|
|
|
28
28
|
#### Defined in
|
|
29
29
|
|
|
30
|
-
[src/TemporaryTableQuery.ts:21](https://github.com/breautek/storm/blob/
|
|
30
|
+
[src/TemporaryTableQuery.ts:21](https://github.com/breautek/storm/blob/0875c73/src/TemporaryTableQuery.ts#L21)
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
#### Defined in
|
|
19
19
|
|
|
20
|
-
[src/IUpdateQueryResult.ts:18](https://github.com/breautek/storm/blob/
|
|
20
|
+
[src/IUpdateQueryResult.ts:18](https://github.com/breautek/storm/blob/0875c73/src/IUpdateQueryResult.ts#L18)
|
|
21
21
|
|
|
22
22
|
___
|
|
23
23
|
|
|
@@ -27,4 +27,4 @@ ___
|
|
|
27
27
|
|
|
28
28
|
#### Defined in
|
|
29
29
|
|
|
30
|
-
[src/IUpdateQueryResult.ts:19](https://github.com/breautek/storm/blob/
|
|
30
|
+
[src/IUpdateQueryResult.ts:19](https://github.com/breautek/storm/blob/0875c73/src/IUpdateQueryResult.ts#L19)
|
|
@@ -104,7 +104,9 @@ node_modules/@types/formidable/index.d.ts:221
|
|
|
104
104
|
This method returns a JSON-representation of the file, allowing you to JSON.stringify() the
|
|
105
105
|
file which is useful for logging and responding to requests.
|
|
106
106
|
|
|
107
|
-
**`
|
|
107
|
+
**`Link`**
|
|
108
|
+
|
|
109
|
+
https://github.com/node-formidable/formidable#filetojson
|
|
108
110
|
|
|
109
111
|
#### Returns
|
|
110
112
|
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
|
|
30
30
|
allow upload empty files
|
|
31
31
|
|
|
32
|
-
**`
|
|
32
|
+
**`Default`**
|
|
33
|
+
|
|
34
|
+
true
|
|
33
35
|
|
|
34
36
|
#### Defined in
|
|
35
37
|
|
|
@@ -53,7 +55,9 @@ ___
|
|
|
53
55
|
|
|
54
56
|
sets encoding for incoming form fields
|
|
55
57
|
|
|
56
|
-
**`
|
|
58
|
+
**`Default`**
|
|
59
|
+
|
|
60
|
+
'utf-8'
|
|
57
61
|
|
|
58
62
|
#### Defined in
|
|
59
63
|
|
|
@@ -77,7 +81,9 @@ streamed for. If you are looking to write the file uploaded in other types of cl
|
|
|
77
81
|
you're looking for. When this option is defined the default behavior of writing the file in the
|
|
78
82
|
host machine file system is lost.
|
|
79
83
|
|
|
80
|
-
**`
|
|
84
|
+
**`Default`**
|
|
85
|
+
|
|
86
|
+
null
|
|
81
87
|
|
|
82
88
|
##### Returns
|
|
83
89
|
|
|
@@ -96,7 +102,9 @@ ___
|
|
|
96
102
|
include checksums calculated for incoming files, set this to some hash algorithm, see
|
|
97
103
|
crypto.createHash for available algorithms
|
|
98
104
|
|
|
99
|
-
**`
|
|
105
|
+
**`Default`**
|
|
106
|
+
|
|
107
|
+
false
|
|
100
108
|
|
|
101
109
|
#### Defined in
|
|
102
110
|
|
|
@@ -110,7 +118,9 @@ ___
|
|
|
110
118
|
|
|
111
119
|
to include the extensions of the original files or not
|
|
112
120
|
|
|
113
|
-
**`
|
|
121
|
+
**`Default`**
|
|
122
|
+
|
|
123
|
+
false
|
|
114
124
|
|
|
115
125
|
#### Defined in
|
|
116
126
|
|
|
@@ -124,7 +134,9 @@ ___
|
|
|
124
134
|
|
|
125
135
|
limit the number of fields, set 0 for unlimited
|
|
126
136
|
|
|
127
|
-
**`
|
|
137
|
+
**`Default`**
|
|
138
|
+
|
|
139
|
+
1000
|
|
128
140
|
|
|
129
141
|
#### Defined in
|
|
130
142
|
|
|
@@ -138,7 +150,9 @@ ___
|
|
|
138
150
|
|
|
139
151
|
limit the amount of memory all fields together (except files) can allocate in bytes
|
|
140
152
|
|
|
141
|
-
**`
|
|
153
|
+
**`Default`**
|
|
154
|
+
|
|
155
|
+
20 * 1024 * 1024
|
|
142
156
|
|
|
143
157
|
#### Defined in
|
|
144
158
|
|
|
@@ -152,7 +166,9 @@ ___
|
|
|
152
166
|
|
|
153
167
|
limit the size of uploaded file
|
|
154
168
|
|
|
155
|
-
**`
|
|
169
|
+
**`Default`**
|
|
170
|
+
|
|
171
|
+
200 * 1024 * 1024
|
|
156
172
|
|
|
157
173
|
#### Defined in
|
|
158
174
|
|
|
@@ -166,7 +182,9 @@ ___
|
|
|
166
182
|
|
|
167
183
|
the minium size of uploaded file
|
|
168
184
|
|
|
169
|
-
**`
|
|
185
|
+
**`Default`**
|
|
186
|
+
|
|
187
|
+
1
|
|
170
188
|
|
|
171
189
|
#### Defined in
|
|
172
190
|
|
|
@@ -182,7 +200,9 @@ when you call the .parse method, the files argument (of the callback) will conta
|
|
|
182
200
|
files for inputs which submit multiple files using the HTML5 multiple attribute. Also, the
|
|
183
201
|
fields argument will contain arrays of values for fields that have names ending with '[]'
|
|
184
202
|
|
|
185
|
-
**`
|
|
203
|
+
**`Default`**
|
|
204
|
+
|
|
205
|
+
false
|
|
186
206
|
|
|
187
207
|
#### Defined in
|
|
188
208
|
|
|
@@ -196,7 +216,9 @@ ___
|
|
|
196
216
|
|
|
197
217
|
the directory for placing file uploads in. You can move them later by using fs.rename()
|
|
198
218
|
|
|
199
|
-
**`
|
|
219
|
+
**`Default`**
|
|
220
|
+
|
|
221
|
+
os.tmpdir()
|
|
200
222
|
|
|
201
223
|
#### Defined in
|
|
202
224
|
|