Storage
Appizap storage comprises of files, folders, and buckets.
Last updated
Appizap storage comprises of files, folders, and buckets.
Last updated
Various types of media files can be uploaded, such as images, GIFs, and videos. It is recommended to store these files separately from the database due to their large sizes. Additionally, HTML files are retrieved in plain text format for security reasons.
Folders act as a method of arranging and categorizing your documents, much like the system on your computer. The manner in which you choose to structure your files within these folders is a matter of personal preference, without a definitive approach. The organizational system can be tailored to best fit the needs of your specific project.
Buckets serve as individual repositories for storing files and folders, akin to advanced folders in terms of functionality and purpose. It is advisable to establish unique buckets specifically for organizing Security and Access Rules. For instance, one may designate a "video" bucket for video files and an "avatar" bucket for profile pictures.
File, Folder, and Bucket names must follow AWS object key naming guidelines and avoid use of any other characters.
Utilizing the Dashboard enables the creation of a bucket. This storage facility seamlessly integrates with your Postgres database, allowing the use of SQL and our client libraries for data management.
The user can easily upload a file either through the Dashboard interface or by utilizing our JavaScript libraries within a web browser.
Go to the storage page in the Dashboard.
Select the bucket that contains the file.
Select the file that you want to download.
Click Download.
Access to your files can be limited by utilizing either the Dashboard or SQL.
Go to the storage page in the Dashboard.
Click Policies in the sidebar.
Click Add Policies in the OBJECTS
table to add policies for Files. You can also create policies for Buckets.
Choose whether you want the policy to apply to downloads (SELECT), uploads (INSERT), updates (UPDATE), or deletes (DELETE).
Give your policy a unique name.
Write the policy using SQL.