Menage error with multiple upload #1156

Open
opened 2020-06-24 15:21:47 +00:00 by ghost · 0 comments
ghost commented 2020-06-24 15:21:47 +00:00 (Migrated from github.com)

Hi,
I do not find a good way to manage this case:
the user select multiple file to upload, but not all get a success response from the server for some reason.

I know there is various callback (e.g. onCompleteItem), but I want to store the error inside the item, so I can access it in clean way.
I can get the response error from the server, and the class FileItem has a "IsError" field, but I do not find a way to assign/find the error message/object from the server to the object.

Can you help me?

Hi, I do not find a good way to manage this case: the user select multiple file to upload, but not all get a success response from the server for some reason. I know there is various callback (e.g. onCompleteItem), but I want to store the error inside the item, so I can access it in clean way. I can get the response error from the server, and the class FileItem has a "IsError" field, but I do not find a way to assign/find the error message/object from the server to the object. Can you help me?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1156