Replies: 1 comment
-
|
The easiest solution is probably to allow skipping the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment, after the resource action was handled,
handle_uploadswill consume the uploaded entries and call theconsume_uploadcallback.In use cases where the content of the file is necessary for the resource action (e.g. a csv import), the file should be consumed in the
handlecallback. If this is done,handle_uploadswill fail due to attempting to consume the already consumed upload.A possible solution is to check in
handle_uploadsif the upload is already consumed, and not call theconsume_uploadhook in that case.I can help to provide a PR if the change is accepted :)
Beta Was this translation helpful? Give feedback.
All reactions