Skip to content

Add support for file upload input to WPS.#7670

Merged
na9da merged 25 commits intowps-multi-selectfrom
wps-file-upload
Sep 5, 2025
Merged

Add support for file upload input to WPS.#7670
na9da merged 25 commits intowps-multi-selectfrom
wps-file-upload

Conversation

@na9da
Copy link
Collaborator

@na9da na9da commented Jul 29, 2025

What this PR does

Merge after #7668

Adds file upload input for WPS.

  • Uploaded files are encoded to base64 and added to Execute request.
  • ComplexData input not already handled by other input types are rendered as file input if it supports base64 encoding.
  • Checks if the file is within the specified maximumMegabytes limit

Here is an example WPS input description that is rendered as file input:

 <Input minOccurs="1" maxOccurs="1">
                <ows:Identifier>upload</ows:Identifier>
                <ows:Title>Upload zip data File</ows:Title>
                <ows:Abstract></ows:Abstract>
                <ComplexData maximumMegabytes="1">
                    <Default>
                        <Format>
                            <MimeType>application/zip</MimeType>
                            <Encoding>base64</Encoding>
                        </Format>
                    </Default>
                    <Supported>
                        <Format>
                            <MimeType>application/zip</MimeType>
                            <Encoding>base64</Encoding>
                        </Format>
                    </Supported>
                </ComplexData>
            </Input>
image

Test me

  • Open this CI link
  • View the WPS item from catalog
  • Test the file upload input field

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

zoran995 and others added 3 commits July 29, 2025 23:52
* disable autocomplete for nominatim search provider
* show attributions for search providers
* update doc
micholm and others added 12 commits August 5, 2025 16:31
* add option to return coordinates as a search result

* add check for no results

* update changes

* remove unused var assignment

* remove log

* destructure float lonlat

* use prettifyCoordinates to match Terria map style

* move prettify inside if block

* pin typescript version to fix build errors
* feat: replace mapbox geojson merge with our implementation
* update CHANGES.md
Fix Data Preview map not loading upon clicking About Data
Upgrade to terriajs-cesium 18.0.0
@na9da na9da merged commit 72cc389 into wps-multi-select Sep 5, 2025
5 checks passed
@na9da na9da deleted the wps-file-upload branch September 5, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants