I used the File Upload example code and when I want to add success function in the data-hs-file-upload configuration obj I face a problem while passing a function because JSON.stringify and JSON.parse doesn't support functions, I suggest to use JSONfn [http://www.eslinstructor.net/jsonfn] instead.
Steps to Reproduce
Open Demo Link
Uncomment the JSON approche & comment to JSONfn approche
Summary
I used the File Upload example code and when I want to add success function in the data-hs-file-upload configuration obj I face a problem while passing a function because JSON.stringify and JSON.parse doesn't support functions, I suggest to use JSONfn [http://www.eslinstructor.net/jsonfn] instead.
Steps to Reproduce
Demo Link
https://stackblitz.com/edit/vitejs-vite-67svyt?file=index.html&terminal=dev
Expected Behavior
Passing call backs in data-hs-file-upload for Upload File component without a problem
Actual Behavior
an errro said that success is not a function
Screenshots
No response