Storage Management
Storage Management Storage Management allows you to organize and manage files and folders in your application. You can upload files, create folders, and configure storage locations. Accessing Storage Management Navigate to Storage Management in the sidebar You'll see the file man
Storage Management
Storage Management allows you to organize and manage files and folders in your application. You can upload files, create folders, and configure storage locations.
Accessing Storage Management
- Navigate to Storage Management in the sidebar
- You'll see the file management interface with folders and files
Routes
- Storage Management:
/storage/management- Main file management page - File Details:
/storage/management/file/:id- View and edit file information - Folder Details:
/storage/management/folder/:id- View and manage folder contents - Storage Configuration:
/storage/config- Manage storage configurations
Uploading Files
From Storage Management Page
- Click the "Upload Files" button in the header (top right)
- The upload modal will open
- Optional: Select a storage location from the dropdown (if you have multiple storage configurations)
- Choose files by either:
- Clicking "Choose File" button to browse your computer
- Dragging and dropping files into the upload area
- Selected files will appear in a list below the upload area
- Click "Upload" button to start uploading
- Files will be uploaded to the root level (not in any folder)
From Folder Details Page
- Navigate into a folder by clicking on it
- Click the "Upload Files" button in the header
- Follow the same steps as above
- Files will be uploaded into the current folder
Upload Features
- Multiple Files: You can upload multiple files at once
- File Size Limit: Maximum file size is 50MB per file
- Storage Selection: You can optionally choose which storage configuration to use for the upload
- File Types: All file types are accepted by default
Creating Folders
From Storage Management Page
- Click the "New Folder" button in the header (next to Upload Files)
- A modal will open asking for folder name
- Enter the folder name
- Click "Create" to create the folder at root level
From Folder Details Page
- Navigate into a folder
- Click the "New Folder" button
- Enter the folder name
- The new folder will be created inside the current folder
Viewing Files and Folders
Grid View (Default)
- Files and folders are displayed as cards
- Each card shows:
- Icon (folder icon for folders, file type icon for files)
- Name
- Additional metadata (for files)
List View
- Click the "List View" button in the subheader to switch to list view
- Files and folders are displayed in a table format
- Shows more detailed information
Switching Views
- Use the view toggle button in the subheader (left side)
- Toggle between Grid View and List View
Managing Files
Viewing File Details
- Click on any file card or name
- You'll be taken to the file details page
- You can see:
- File preview (for images)
- File icon (for other file types)
- File information form
- File permissions section
Editing File Information
- Navigate to file details page
- Edit any field in the form
- Click "Save" button in the header to save changes
- Click "Reset" to discard changes
Replacing a File
- Navigate to file details page
- Click "Replace File" button in the subheader
- Upload modal will open
- Select a new file to replace the current one
- Click "Upload" to replace
- Warning: The old file will be permanently lost
Deleting Files
From File Details Page: 1. Navigate to file details 2. Click the "Delete" button in the header (red button) 3. Confirm the deletion
From File Manager: 1. Right-click on a file 2. Select "Delete" from the context menu 3. Confirm the deletion
Multiple Files: 1. Enter selection mode (click "Select Items" in subheader) 2. Select multiple files by clicking on them 3. Use the delete action from the context menu or toolbar
Managing Folders
Viewing Folder Contents
- Click on any folder
- You'll be taken to the folder details page
- You can see:
- All subfolders
- All files in the folder
- Folder information
Editing Folder Information
- Navigate to folder details page
- Edit folder fields in the form
- Click "Save" to save changes
Deleting Folders
From Folder Details: 1. Right-click on a folder 2. Select "Delete" from the context menu 3. Confirm the deletion
Warning: Deleting a folder will also delete all files and subfolders inside it.
Storage Configuration
Viewing Storage Configurations
- Navigate to Storage Config in the sidebar
- You'll see a list of all storage configurations
- Each configuration shows:
- Name
- Storage type (Amazon S3, Google Cloud Storage, Cloudflare R2, Local Storage)
- Status (Active/Inactive)
- Description
- Badge color indicating storage type:
- Blue (Primary): Amazon S3
- Cyan (Info): Google Cloud Storage
- Orange (Warning): Cloudflare R2
- Gray (Neutral): Local Storage
Creating Storage Configuration
- Go to Storage Config page
- Click "Create Storage" button in the header
- The form will initially show only these fields:
- Name: A descriptive name for this storage configuration
- Bucket: Storage bucket/container name
- Description: Optional description
-
Type: Select the storage type (Amazon S3, Google Cloud Storage, or Cloudflare R2)
- Note: Local Storage cannot be created through the UI
-
After selecting a storage type, additional fields will appear based on the type:
For Amazon S3: - Access Key ID: Your AWS access key ID - Secret Access Key: Your AWS secret access key - Bucket: S3 bucket name - Region: AWS region (e.g., us-east-1, eu-west-1)
For Google Cloud Storage: - Credentials: JSON credentials for GCS service account - Bucket: GCS bucket name
For Cloudflare R2: - Access Key ID: Your R2 access key ID - Secret Access Key: Your R2 secret access key - Account ID: Your Cloudflare account ID - Bucket: R2 bucket name
- Fill in all required fields for your selected storage type
- Click "Save" to create the configuration
Editing Storage Configuration
- Click on any storage configuration card
- The form will show all relevant fields based on the storage type
- Note: The Type field is disabled and cannot be changed after creation
- Edit the fields you want to modify
- Click "Save" to save changes
- Click "Reset" to discard changes
Enabling/Disabling Storage
- On the Storage Config list page
- Toggle the switch on any configuration card
- Active configurations can be used for file uploads
- Inactive configurations cannot be selected during upload
Deleting Storage Configuration
- On the Storage Config list page
- Click the "Delete" button on a configuration card
- Confirm the deletion
File Actions
Context Menu Actions
Right-click on any file to see available actions: - View: Open file in new tab - Download: Download the file - Copy URL: Copy file URL to clipboard - Details: Navigate to file details page - Delete: Delete the file (if you have permission)
Selection Mode
- Click "Select Items" button in the subheader
- Click on files/folders to select them
- Selected items will be highlighted
- Use bulk actions (delete, move, etc.)
- Click "Cancel Selection" to exit selection mode
Navigation
Breadcrumbs
- Use breadcrumbs at the top to navigate back to parent folders
- Click on any folder name in the breadcrumb to go to that folder
Back Navigation
- Use browser back button
- Or click on parent folder in breadcrumbs
Pagination
When you have many files or folders: - Pagination controls appear at the bottom - Separate pagination for folders and files - Use page numbers to navigate through pages
Permissions
- Upload Files: Requires create permission on
/file_definition - Create Folders: Requires create permission on
/folder_definition - Edit Files: Requires update permission on
/file_definition - Delete Files: Requires delete permission on
/file_definition - Manage Storage Config: Requires permissions on
/storage_config_definition
Actions will only appear if you have the required permissions.