Hi,
The SfUploader compoments fails to upload files by having a 'Cannot read properties of undinfed (reading 'classList')' error.
The following conditions make it occur :
- Use the SfUploader in an EditForm
- Use the BeforeUpload event (the place to manage the CurrentRequest since it doesn't work on the FileSelected event anymore)
- Use the UploaderAsyncSettings SaveUrl property
- Submit the EditForm data then init a new EditContext
The thing is that the SfUploader lose its state when the EditForm/EditContext is re-initialized.
By losing its state it cannot do all of its JS fancy things.
It should be resilient and continue to send the files like it does when the SaveUrl or the BeforeUpload are not used.
Regards,
Julien