Is your feature request related to a problem? Please describe.
During the start of an upload the client does a HEAD request to know if file already exists on server and know how much of it is already uploaded. If this request fails (for example for an authentication error), it's not possible to stop the file from being deleted.
Describe the solution you'd like
Have a way to handle the errors thrown by the HEAD request
Describe alternatives you've considered
Another possibility would be to decide before a file is deleted if it actually needs to be deleted