How to get error logs if file upload request fails? #1172
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am trying to upload an image file to S3 and using
onErrorItemhook to know if any error, and I am gettingitem.isErrorastrue,which means, file upload is failed. I also checked S3 and there was no file. But, there are no error logs about failure in the
itemobject.So, can anyone please tell me, how can I see error logs in
ng2-file-uploadafter failing to upload a file in S3.By the way, I found what was the error using Network Tab in Developer Tools in Google Chrome.
But it would have been much quicker if
ng2-file-uploadhad any error logging mechanism.This is how we can simply check any error coming while you send an API request.