formidable icon indicating copy to clipboard operation
formidable copied to clipboard

Is it possible to get progress event only if there are file fields in the form?

Open n-samir opened this issue 8 years ago • 1 comments

var formidb = new formidable.IncomingForm(); formidb.on('progress', function(bytesAlreadyIn, bytesExpected) {..

I want to do something like: if (form-has-file-fields) formidb.on('progress', function(..) {..

n-samir avatar Oct 27 '18 15:10 n-samir

Right now there is no flag that does it.

Yet you can use listen to the filebegin event and set a boolean flag to true in order to detect files (while the upload is in progress)

Waiting for your response to see if it helped.

xarguments avatar Jan 28 '19 14:01 xarguments