File Upload via REST API - Enhancements

Currently the File Upload when a file already exists , an error message is returned stating the File already exists. I would like to have the API return sooner than it does with this error message. If the File to be upload is very large, the process to upload the file can take 10+ minutes to just find out that the file already exists.

If possible, would like to have a the backend return the fact that the File already exist alot sooner than it does, or have the backend perform a unique filename creation.

Also, I would like to have an API to search for Files in the File Storage based upon filename, supporting wildcards.

In addition, an API to allow the caller to overwrite an existing File would be beneficial.

The way to make it work would be to add the API to check if the file exists. You can “sort of” do it now by fetching the file using its URL. If the server does not return 404, it means the file already exists and in this case, the upload would not be necessary.