Renamed ValidationException to EntityException. Added check to ensure user has enough space to upload a file