Skip to content

Improve error message for uploading boundaries #796

Description

@tgilcrest

Related to the discussion in #790, we should improve the error message on the shapefile upload for boundaries. When an error is encountered, the error message returned is simply: Error - check that your upload is a valid shapefile.

image

However, in the dev console, we see that a more specific error is returned:

"errors":{"message":"Shapefile must include a .prj file"}

or

"errors":{"message":"Feature is not a MultiPolygon or Polygon"}

The UI should return the more specific error message so the user knows what is wrong with the upload without having to dig into the dev console.

In addition, the response returns a 201 Created, which seems incorrect, and should probably be some 400-level response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions