Introduction
What OpenFiles is, what it does and where to start.
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
photosanddocuments. - Let each app upload with its own API token, limited to the storages you choose.
- Upload files as
multipart/form-dataor 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
- You create a storage, for example
photos. - You create an API token for your app and allow it to upload to
photos. - Your app sends a file to
/upload/photos/with the token. - 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
- Install OpenFiles from source or with Docker.
- Sign in for the first time: First sign-in.
- Create your first storage and API token.
- Connect your app: REST API overview.