Skip to content

Help passing uploaded image (blob) into server action #135

Closed Answered by TheEdoRan
nikitavoloboev asked this question in Q&A
Discussion options

You must be logged in to vote

This is the right URL: https://next.next-safe-action.dev/docs/safe-action-client/initialization-options#handlereturnedservererror

next-safe-action catches errors that occur during execution, on the server. If that happens, the serverError property of the action result object gets set.

If you want to rethrow all server errors, you can easily achieve that behavior by doing that inside handleReturnedServerError function.

Replies: 8 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@nikitavoloboev
Comment options

@nikitavoloboev
Comment options

@nikitavoloboev
Comment options

@TheEdoRan
Comment options

Answer selected by TheEdoRan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants