onUploadError
Determines whether the provided attachment upload operation should be retried.
Return
true
if the upload operation should be retried, false
otherwise.
Parameters
attachment
The attachment involved in the failed upload operation.
exception
The exception that caused the upload failure.