Get a browser upload link for a big input layer
request_input_uploadGenerate a browser upload link when input layers exceed direct-send size limits; users drop GeoJSON, zipped shapefile, or GeoPackage files for conversion and attachment.
Instructions
Get the link where the PERSON uploads a big input layer in their browser.
For a layer too big to send with write_input_layer (over about 150 KB):
building footprints, land-use friction. You cannot move file bytes, so give
the person ui_url. It opens the project's upload page for this kind; they
drop a GeoJSON, a zipped shapefile or a GeoPackage (up to 100 MB), Hydrata
converts it into the project's grid and attaches it to the kind's layer,
replacing what it held. Nothing is created until they drop a file.
A file the person drops is their own input: it is marked 'uploaded by the
user' and needs no review step. Afterwards call list_inputs: the layer is
there with that authored_method. A file of the wrong kind (polygons on an
inflow) is refused on the page with a plain message. The person needs Editor
access on the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Which input the file is for: boundary, friction, inflow, rainfall, building, mesh_region or culvert ('structure' is a deprecated alias of building). | |
| project_id | Yes | The project ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||