DSpace Upload: a small desktop app (Tauri 2 + Svelte) for institutions digitising large collections over variable-quality connections. Point it at a folder, and it uploads every file in it to a DSpace 7+ collection through the REST API. Started for the Université du Burundi's repository (DSpace 10), during Africa Evidence Week 2026, as part of Openscholar's work with African institutional repositories.
Digitisation can produce files faster than it produces metadata. The usual routes into DSpace tend to ask for both at once, which, in our experience, can slow the work down:
- The repository may be close to the scanner. At a university, the computer doing the digitisation and the DSpace server are often on the same campus network. Putting files into DSpace can then be quick, while moving them elsewhere (shared drives, cloud folders, USB sticks) may be slower or less safe.
- DSpace's bulk import can be hard to use in practice. DSpace can import many items at once, but only from a prepared package in its "Simple Archive Format": a ZIP with one folder per item, each holding the files, a
contentslist and adublin_core.xmlmetadata file. Importing through the web interface also depends on the server being set up for it (a working directory for imports, and the import process enabled for the right users). As bulk import is used fairly rarely, staff may not be aware of it, and it may be switched off, as it currently is on the Université du Burundi's repository. - Waiting for metadata may keep files on personal drives. If items can only go into the repository once their metadata is complete, scans may stay on individual computers, or be passed around on drives, while someone catalogues them. That can make files easier to lose and working together harder.
The approach we suggest is therefore to upload first and describe later. Each file goes into the repository straight away, with minimal metadata (the file name and the file's modification time); material that should not be public yet can go into a private collection. Once the files are in DSpace, others with access can work on them, and metadata can be extracted or added from the repository copy, without files having to be passed around on drives.
So far, the connection seems good enough for this. On 2 December 2026 we measured downloads from the Université du Burundi's repository, from outside Burundi, at about 5 MB/s for large files, with about 2 seconds of overhead per request (a 4.6 MB thesis took 4–5 seconds). On 3 December, the university's digitisation team uploaded with this app at about one file every 20–30 seconds, and we were able to retrieve the first 31 files (about 75 MB) for metadata extraction without difficulty. These are single measurements, and speeds will vary.
Why Tauri: the app is built with Tauri rather than Electron, to help keep the download small. Tauri uses the web view that is already part of the operating system (WebView2 on Windows 10 and 11) instead of shipping its own browser, so the Windows installer is about 2.5 MB (similar in size to a single scanned PDF), where an Electron app typically needs 100 MB or more. This can matter where connections are slow or expensive, and it helps keep updates quick.
- The interface is in English, French, Spanish, Portuguese, Swahili and Arabic (language menu at the top right; Arabic is shown right to left). It starts in the computer's language if it is one of these, and remembers the choice.
- Log in with email and password (the server, email and last folder are remembered; the password is not). A row at the top of the login form, Fill in default settings, has two buttons: Université du Burundi (the address only; it clears the demo login) and Use demo server (demo.dspace.org with its public admin account, for trying the app with dummy files). If other default settings would be useful, for example for your own repository, let us know by opening an issue.
- Choose one of the collections the account can submit to, and a folder.
- Every file in the folder (and its subfolders; hidden files skipped) becomes one item:
dc.title= the file name without its extension;dc.description=File last modified: <the file's modification time>.
- Two routes, chosen automatically:
- site administrators: items are created directly (
POST /core/items, ORIGINAL bundle, bitstream), bypassing the submission form, so nothing else is set; - everyone else (submit or collection-admin rights): after the server refuses the direct route (403), the app uses DSpace's normal submission route (draft, metadata, file, licence, submit). If the collection's form requires a date issued and a type, they get the placeholders
2211andOther, to be corrected later (search for 2211). In a collection without a review step the items are archived at once.
- site administrators: items are created directly (
- The collection's default access rules apply, so a private collection gives private items.
- Before uploading, the app reads what is already in the collection (by title and by
dc.identifier.other): a file whose item is there with its file is skipped; an item that is there without its file (an earlier upload broke off) gets the file added, keeping its handle. - Failures: temporary errors (network, timeouts, server errors 5xx, 408, 429) are retried after 15 s, 1 min and 3 min; permanent ones (e.g. 403, 413 file too large, 422) are not. Files that still fail get a second pass at the end of the run. A failed upload leaves nothing behind: the half-made item (direct route) or draft (submission route) is deleted. Running the folder again retries whatever is still missing.
- A ledger,
.dspace-upload-ledger.jsonlin the folder, records every file uploaded (path, size, mtime, handle, checksum). Stopping and starting again continues where it left off; a file that changes is uploaded again. - An expired login token (about 30 minutes) is renewed automatically during long runs.
From version 0.2.0 the app updates itself: when it starts, it checks the latest GitHub release and, if there is a newer version, shows Update now (in the chosen language). Check for updates, next to the version number at the bottom of the window, does the same at any time. One click downloads the signed installer, installs it and restarts the app (not during an upload). Version 0.1.0 has no updater, so install 0.2.0 or later by hand once.
To publish a release: scripts/release.sh 0.2.1. It sets the version in package.json, src-tauri/tauri.conf.json and src-tauri/Cargo.toml, commits, tags v0.2.1 and pushes; GitHub Actions builds and signs the installers and publishes the release with latest.json. Updates are signed: the public key is in tauri.conf.json, the private key and its password are the repository secrets TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD (keep a copy of both outside GitHub: without them, installed apps can no longer be updated).
Download: the installers are on the release page, https://github.com/OpenDevEd/dspace-upload-app/releases/latest (no GitHub account needed): for Windows the -setup.exe (or the .msi), for Linux the .AppImage (or .deb / .rpm). The installers are not yet code-signed, so Windows may warn about an unknown publisher: choose More info, then Run anyway.
Releases are built by GitHub Actions from a version tag (scripts/release.sh, see Updates): the release stays a draft until Windows and Linux are both built, then it is published. Every push to main is also built, with the installers attached to the run as artifacts (for testing; these need a GitHub login).
To build locally: Node.js, Rust (1.92 or later) and the Tauri prerequisites, then
npm ci
npm run tauri dev # run in development
npm run tauri build # installers in src-tauri/target/release/bundle/
src-tauri/examples/upload_demo.rs exercises the upload code without the window: cargo run --example upload_demo -- BASE USER PASSWORD COLLECTION_UUID FILE (in src-tauri/).
examples/dspace-api.py logs in with a password and reports what the account may do (read-only). examples/dspace-upload.py is the prototype of the app (same ledger format), with --mode admin (default) or --mode submit (through the submission form).
examples/dspace-api.py check # who am I, groups, site rights, collections I can submit to or administer
examples/dspace-api.py get PATH # GET one API path (e.g. /core/collections) and print the JSON
examples/dspace-api.py --creds FILE check
Credentials go in .credentials.json (gitignored, mode 600):
{"base": "https://your-repository.example.org/server/api",
"user": "user@example.org",
"password_file": "/path/to/password.txt"}password_file is relative to the credentials file, or absolute; "password": "..." works too.
GET /server/api/authn/statusreturns a CSRF token (DSPACE-XSRF-TOKENheader plus cookie).POST /server/api/authn/loginwith form fieldsuser,passwordand headerX-XSRF-TOKENreturnsAuthorization: Bearer <JWT>(about 30 minutes).- Send the bearer token on every request, and
X-XSRF-TOKENon writes; a refreshed token in any response replaces the old one.
https://demo.dspace.org (DSpace 10.x) and https://sandbox.dspace.org (11.x) are public and reset regularly. Their published accounts use the password dspace: dspacedemo+submit@gmail.com (submitter) and dspacedemo+admin@gmail.com (administrator). Use a separate credentials file, e.g. .credentials-demo.json with "base": "https://demo.dspace.org/server/api".
Copyright © 2026 Open Development & Education. Licensed under the GNU Affero General Public License, version 3 or (at your option) any later version (AGPL-3.0-or-later); see LICENSE.