ISSUE: When trying to upload/move a file in the path where already a folder with the same name as the file is present, the "FileExpectedException" will be thrown from the backend.
The exception is thrown with a 500 status code to the UI and in the platform UI, this is considered as Internal server error and users see the below screenshot.
REPRODUCTION STEPS: Upload a folder called "test" to "generic-local"(for ex) and upload a file with the same name "test" in the same path.
EXPECTED: Throw 409(conflict) or 400(bad request) status code to the UI so the 500 page is avoided.