We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c9923 commit c57afd3Copy full SHA for c57afd3
src/components/dropzone/components/utils/validation.utils.ts
@@ -221,14 +221,16 @@ export const makeSynthticFileValidate = (
221
newUpoadStatus = undefined;
222
customUploadMessage = undefined;
223
}
224
- return {
+ //now make a File Validated instance
225
+ const newFileValidated: FileValidated = {
226
id: FileIdGenerator.getNextId(),
227
valid,
228
file,
229
uploadStatus: newUpoadStatus,
230
uploadMessage: customUploadMessage,
231
errors
232
233
+ return newFileValidated;
234
235
/**
236
* list of dumy errors in english
0 commit comments