Skip to content

About

A Rust desktop and command-line uploader for Internet Archive, with streaming large-file uploads, retry handling, proxy support, and a macOS installer.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Internet Archive Uploader

Internet Archive Uploader logo

English · 简体中文

Upload large files to Internet Archive from a desktop app or your terminal.

Internet Archive Uploader is an independent, MIT-licensed Rust application with a desktop interface and a command-line tool. Both use the same upload engine to authenticate with Internet Archive S3 credentials, stream files without loading them entirely into memory, and retry interrupted requests.

Use the desktop app to select files and track progress, or use the CLI for scripts and repeatable upload workflows.

Download v0.1.2 for Apple Silicon Mac · All releases

Toonflow plugin

A companion Toonflow tool plugin is included in toonflow/. It lets the Toonflow Agent upload workspace videos and images to Internet Archive using the same S3-style API as this uploader.

Features

  • Desktop and CLI: File selection, drag-and-drop, an upload queue, progress reporting, transfer rates, and scriptable commands.
  • Streaming uploads: File sizes use 64-bit values; memory usage does not grow with the full file size.
  • Account verification: Authenticate with an Internet Archive S3 Access Key and Secret Key before uploading.
  • Retries and redirects: Exponential backoff for network failures and HTTP 429/5xx responses; replayable uploads for HTTP 307/308 redirects.
  • Proxy support: Automatic system/environment proxy discovery, direct connections, or an explicit HTTP, HTTPS, or SOCKS5 proxy.
  • Unicode support: Unicode filenames and titles, including Chinese text.
  • macOS installer: A DMG containing the desktop app, an Applications shortcut, and the CLI, with matching application and mounted-volume icons.

Credentials are kept in memory for the running session and are not saved by the application. Authentication is sent only to HTTPS archive.org endpoints and their subdomains, including after redirects. TLS certificate verification remains enabled.

Install on macOS

  1. Download the Apple Silicon DMG.
  2. Open it and drag Internet Archive Uploader.app into Applications.
  3. Launch the app and enter your Internet Archive S3 credentials.

The current release is for Apple Silicon Macs (arm64). The application has an ad-hoc signature and has not been signed with an Apple Developer identity or notarized. Builds and runtime checks have been performed on macOS; Windows and Linux have not been validated. The desktop interface, upload messages, and CLI help support Chinese and English and select the language automatically at startup.

The DMG also includes ia-upload-cli, which you can copy to a directory of your choice.

Verify the download

Download the .dmg and .sha256 files from the release page into the same directory, then run:

shasum -a 256 -c Internet-Archive-Uploader-0.1.2-macOS-arm64.dmg.sha256

Interface language

The app and CLI follow the operating system's preferred language at startup: Chinese (zh, including Simplified and Traditional Chinese locales) selects Simplified Chinese text; all other locales select English. macOS uses the first entry in AppleLanguages, Windows uses the user's UI language, and Linux uses locale environment variables. Restart the app after changing the OS language.

You can override the CLI language with --lang auto|zh|en, or set IA_UPLOADER_LANG=zh / IA_UPLOADER_LANG=en for either executable. An explicit CLI flag takes precedence over the environment variable. Language selection does not change credentials, filenames, metadata, or upload behavior.

./target/release/ia-upload-cli --lang en --help
./target/release/ia-upload-cli auth --lang zh
IA_UPLOADER_LANG=en cargo run --bin ia-uploader

Desktop workflow

  1. Leave the connection mode on 自动代理 (automatic proxy), or choose 直连 (direct) or 手动代理 (manual proxy).
  2. Enter your Access Key and Secret Key, then click 验证账号 (verify account).
  3. Enter an item identifier and optionally set the title, collection, and media type.
  4. Click 添加文件 (add files), or drag files into the window.
  5. Click 开始上传 (start upload) and monitor the current file's progress, transfer rate, and completed-file count.

Network requests run in a background thread. 取消任务 (cancel task) requests cancellation during file reads or retry waits; a request already connecting or waiting for a server response may take longer to stop. Closing the window terminates the task.

Build from source

Requires Rust 1.92 or newer.

git clone [email protected]:redoop/ia-uploader.git
cd ia-uploader
cargo build --release --locked

This produces two executables:

Executable Purpose
target/release/ia-uploader Desktop app
target/release/ia-upload-cli Command-line uploader

To build only the CLI without GUI dependencies:

cargo build --release --locked --no-default-features --bin ia-upload-cli

Run the desktop app during development with cargo run --bin ia-uploader. Chinese font rendering uses system fonts: STHeiti on macOS, Microsoft YaHei on Windows, or Noto Sans CJK at the configured system path on Linux.

CLI quick start

Get your Internet Archive S3 Access Key and Secret Key from the account credentials page. These are different from your website password and AWS credentials.

In macOS zsh, use hidden input to avoid putting the key values in shell history:

read -rs 'IA_ACCESS_KEY?Access Key: '; echo
read -rs 'IA_SECRET_KEY?Secret Key: '; echo
export IA_ACCESS_KEY IA_SECRET_KEY
./target/release/ia-upload-cli auth

Upload a file:

./target/release/ia-upload-cli upload my-archive-20261024 \
  /absolute/path/backup.7z \
  --title 'My Archive' --collection opensource --mediatype data

Upload multiple files to the same item:

./target/release/ia-upload-cli upload my-video-20261024 \
  /absolute/path/part1.mp4 /absolute/path/part2.mp4 \
  --title 'Video Collection' --collection opensource_movies --mediatype movies \
  --retries 5 --no-derive

Files are uploaded sequentially using their base filenames. Duplicate filenames in a queue are rejected. An identifier selects the item at https://archive.org/details/<identifier>; choose an unused identifier to create an item, or an item you have permission to modify. The collection must accept uploads from your account. Metadata headers apply when creating an item; they do not update an existing item's metadata.

Existing remote files with the same name are replaced. Requests include x-archive-keep-old-version:1 to ask Internet Archive to preserve older versions.

Proxy options

Automatic mode uses system proxy settings and proxy environment variables. You can override it with a global CLI option before or after the subcommand:

./target/release/ia-upload-cli auth --proxy http://127.0.0.1:7890
./target/release/ia-upload-cli upload my-archive-20261024 /path/file.zip \
  --proxy socks5h://127.0.0.1:7890
./target/release/ia-upload-cli auth --direct

Use the address configured in your proxy application. --proxy and --direct are mutually exclusive. These options do not modify system settings. A connection timeout means the client did not receive an authentication result; it does not establish that the credentials are invalid.

Upload behavior and limitations

  • No multipart or byte-level resume: Each file uses a single PUT request. A retry starts that file from the beginning; rerunning the command retransmits the listed files.
  • No fixed client-side file-size ceiling: Actual upload limits depend on Internet Archive, your permissions, and available server resources.
  • Timeouts: Connections time out after 30 seconds; authentication requests after 60 seconds. Upload requests have no total deadline. A stalled request may require cancellation or restarting the application.
  • Retry policy: Three additional attempts by default, configurable up to ten. HTTP 401/403 and other non-retryable responses stop the upload.
  • Progress is not archival confirmation: Progress measures bytes read and sent by the client. Success is reported after a successful HTTP response; ingestion and derivative processing may continue afterward.
  • Keep source files unchanged: Size and modification time are checked before each transmission. The client does not perform an additional remote read-back checksum verification.
  • Uploads are generally public: Valid credentials do not grant write access to every item or collection.

Development checks

cargo test --locked --all-targets
cargo clippy --locked --all-targets -- -D warnings
cargo fmt --check

The v0.1.2 test suite includes 20 tests covering authentication rejection, redirect boundaries and full-body replay, transient failures, retry exhaustion, proxy routing, Unicode encoding, identifier validation, 5 GiB sparse-file reads, cancellation during reads, GUI state, logo decoding, locale detection, bilingual rendering, and CLI language overrides. HTTP tests bind local loopback ports and use dummy credentials; they do not upload to Internet Archive.

macOS packaging

sh scripts/package-macos.sh
sh scripts/package-dmg.sh

The DMG script builds for the host architecture and creates an installer and a SHA-256 file in dist/. It requires macOS command-line developer tools and Python 3. The installer contains the app, an Applications shortcut, the CLI, and bilingual installation instructions.

The original logo is in assets/logo-v1.png; its generation prompt is in assets/logo-prompt.txt. Packaging generates the multi-size assets/AppIcon.icns and embeds the volume icon inside the DMG. The external DMG's Finder icon uses macOS extended metadata, which some transfer tools strip; the mounted-volume icon remains part of the image.

License and references

Released under the MIT License. This project is independently developed and is not an official Internet Archive application.

About

A Rust desktop and command-line uploader for Internet Archive, with streaming large-file uploads, retry handling, proxy support, and a macOS installer.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages