Spanish Total.js
English
Documentation For AI agents
Contents

Introduction

What OpenFiles is, what it does and where to start.

.md GitHub
On this page

OpenFiles is a small file server for your other apps. Your apps upload files to it through a REST API, and OpenFiles gives each file a permanent link that anyone can open. You manage everything in a web interface: the storages that hold the files, the API tokens your apps use, and a few settings.

OpenFiles is an official Total.js app under the MIT license. The code is on GitHub.

What you can do

  • Keep files in separate storages, for example photos and documents.
  • Let each app upload with its own API token, limited to the storages you choose.
  • Upload files as multipart/form-data or as Base64 JSON.
  • Share every file through a public link, or as a download.
  • Browse, filter, sort, rename and remove files in the web interface.
  • Keep a searchable index of the files in PostgreSQL if you want one.

How it fits together

  1. You create a storage, for example photos.
  2. You create an API token for your app and allow it to upload to photos.
  3. Your app sends a file to /upload/photos/ with the token.
  4. OpenFiles answers with the file ID and its link, for example /files/photos/JapO3b1e961f-pn.png. Your app saves that link and shows it to its users.

Where to go next

Made in Europe