How does file storage work?
In Xano, you are provided a separate “bucket” that can hold all of your files, whether these are files you are providing to your users, or files they are uploading to your application. You can upload almost anything, from images, to documents and PDFs, and even audio / video. File storage has two essential components:- The files themselves
- Database records with metadata
Review all of the available functions for working with files here.
Public vs Private Storage
It’s important to note that files uploaded to Xano have static URLs — this means that once a user has a URL to a file stored in your Xano backend, that URL will always be accessible without any kind of authentication or other checks to determine if it should be accessed. If you have files that you need to restrict access to, you should be utilizing private file storage instead. You can review all of your public and private files from the
File Management
The File section enables you to view and manage all of the files (images, videos, audio files, and attachments) in your workspace. You can easily see and search the files of your workspace and see the file name, mime type, size, and date it was created.- Uploading a file directly to the database.
- Uploading a file directly to the File page.
- Creating Metadata for any type of file in the function stack.
Files do not need to be added to your database to be a file of your workspace. Creating the metadata of a file through the function stack associates that file with your workspace - even if you do not add it to a record in one of your database tables.