Upload files to storage

Handle file upload requests and save the files to the configured storage.

Args: request (Request): The incoming HTTP request.

Returns: JSONResponse: A JSON response containing the file metadata.

Raises: JSONResponse: A JSON response with a 400 status code if the request is invalid, or a 500 status code if an error occurs during file saving.

Language
Click Try It! to start a request and see the response here!