log if uploadedFileLocation is not a string