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_uploads
will consume the uploaded entries and call theconsume_upload
callback.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
handle
callback. If this is done,handle_uploads
will fail due to attempting to consume the already consumed upload.A possible solution is to check in
handle_uploads
if the upload is already consumed, and not call theconsume_upload
hook in that case.I can help to provide a PR if the change is accepted :)
Beta Was this translation helpful? Give feedback.
All reactions