We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider the use case described in loopbackio/loopback-datasource-juggler#545
in beforeRemote('create', ...) uploaded files (multipart/form-data) are handled this adds the stored filename/path to ctx.args.data so the model will save this however, the model appears to be invalid for some reason (unrelated to the uploaded file) now, validation fails and there's no way to purge the now orphaned uploaded file from storage/disk
We should add a new hook triggered whenever a remote request fails, so that users can clean up any resources allocated in "beforeRemote" hook.
Tasks
The text was updated successfully, but these errors were encountered:
Good idea...
Sorry, something went wrong.
See #190 for the strong-remoting part. I need to implement Model.afterRemoteError in loopback once #190 is landed.
Model.afterRemoteError
I have updated the documentation page http://docs.strongloop.com/display/LB/Remote+hooks and described the new afterRemoteError hook. @crandmck please review the page and edit as you like.
afterRemoteError
I am closing this issue as resolved.
bajtos
No branches or pull requests
Consider the use case described in loopbackio/loopback-datasource-juggler#545
We should add a new hook triggered whenever a remote request fails, so that users can clean up any resources allocated in "beforeRemote" hook.
Tasks
The text was updated successfully, but these errors were encountered: