PrimeReact File Uploader

UI Components for React
Post Reply
Alediran
Posts: 1
Joined: 03 Sep 2021, 19:53

03 Sep 2021, 21:02

I'm using a custom upload function with the Uploader in basic mode. The last thing I call after executing the upload is the e.options.clear() function to liberate the button and have it ready to upload a second file.

The clear function is failing every time I run the upload with the following error:
TypeError: Cannot set properties of null (setting 'value')
at h.value (FileUpload.js:167)
at h.value (FileUpload.js:411)
at Object.onUpload [as uploadHandler] (DocumentDetail.tsx:261)
at h.value (FileUpload.js:304)
at h.<anonymous> (FileUpload.js:225)
at pi (react-dom.production.min.js:131)
at hl (react-dom.production.min.js:220)
at _s (react-dom.production.min.js:259)
at t.unstable_runWithPriority (scheduler.production.min.js:18)
at Vo (react-dom.production.min.js:122)

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests