File upload API

Description

Add and API for direct file upload using multipart/form-data (aka curl -F option, https://everything.curl.dev/http/multipart) which will allow uploads of RAW marc file dumps and MarcXML files. Additionally, we should support gzip compressed archives.

This approach is supported by browsers so it's easy to expose this functionality to the end user through a regular upload form.

Additionally, the endpoint should support the following form fields query parameters:

  • sourceId

  • sourceVersion

  • localIdPath (jsonPath expression to extract local identifiers)

When moving the functionality from the client, drop support for XSLT.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Charles Ledvina October 25, 2022 at 1:01 PM

Well, up until the last month, the PALCI members did not compress their MARC files. I see that Moravian added four .zip files on 2022-09-23. I think perhaps we should support zip files of the .gz and .zip flavor. The current harvester supports this, so maybe we'd want to continue doing this.

Jakub Skoczen October 25, 2022 at 10:51 AM

How are the catalog dump files delivered by PALCI member libraries? Are they compressed? If so, what sort of compression is it? tar.gz, zip?

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Reservoir Dogs

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 25, 2022 at 9:40 AM
Updated November 18, 2022 at 11:39 AM
Resolved November 14, 2022 at 2:59 PM
TestRail: Cases
TestRail: Runs