Sidronio Lima

Results comments of Sidronio Lima

Thanks for the reply, but it doesn't work. Look: `console.tron.log(ref.files);` `[ {} ]` `console.tron.log(req.value);` `C:\fakepath\forno.jpg`

A propriedade file continua vazia. Olha só: `[ { "name": "GLrDTX70My6V303cWvkI.jpg", "size": 15970, "file": {} } ]`

Meu form: ` ` How I get the form data: `const assetsFormData = assetsFormRef.current.getData();`

I think the problem is not with the Input. Take a look at this modification: ` for (let i = 0; i < ref.files.length; i += 1) { let reader...

Hi! So... there's a if testing if the file property. Somehow the js saw this as undefined or null. Perhaps it has data. The solution: I removed the if testing...

The getValue code: ` getValue(ref) { return [...ref.files]; }, `