Using Server Actions with react-dropzone
Unanswered
Ant posted this in #help-forum
AntOP
Hi,
I'm trying to use the server actions with the well known drag and drop
However, the package generates an input field like this :
You use an onDrop method to read the file contents as you can see here https://react-dropzone.js.org/#usage
There's no form tag or submitting in this case. Is there a way to workaround this to make it work with Server Actions ?
I'm trying to use the server actions with the well known drag and drop
react-dropzone package.However, the package generates an input field like this :
<input tabindex="-1" type="file" style="display: none;">You use an onDrop method to read the file contents as you can see here https://react-dropzone.js.org/#usage
There's no form tag or submitting in this case. Is there a way to workaround this to make it work with Server Actions ?