Drive - File Management
Your cloud storage workspace
Overview
Drive is your personal cloud storage within General Bots Suite. Upload, organize, and share files with a familiar interface. Built with HTMX for smooth interactions and SeaweedFS for reliable object storage.
Features
Upload Files
Drag and Drop:
- Drag files from your computer
- Drop anywhere in the file area
- Upload progress shows automatically
Click to Upload:
- Click + New button
- Select Upload Files or Upload Folder
- Choose files from file picker
File Operations
| Action | How to Access |
|---|---|
| Open | Double-click file |
| Download | Right-click > Download |
| Rename | Right-click > Rename |
| Copy | Right-click > Copy |
| Move | Right-click > Move to |
| Star | Right-click > Star |
| Share | Right-click > Share |
| Delete | Right-click > Delete |
View Modes
| Mode | Description |
|---|---|
| Grid | Large thumbnails with previews |
| List | Detailed table with columns |
Navigation
- Breadcrumb: Click any folder in the path to jump back
- Sidebar: Quick access to My Drive, Starred, Recent, Trash
- Search: Find files by name or content
Labels & Organization
| Label | Icon | Use For |
|---|---|---|
| Work | π΅ | Professional files |
| Personal | π’ | Private documents |
| Projects | π‘ | Project-specific files |
| Custom | π£ | Create your own |
File Sync (Desktop Only)
The desktop app provides bidirectional file synchronization between your local machine and cloud Drive using rclone.
Requirements:
- General Bots desktop app (Tauri)
- rclone installed on your system
Setup:
- Install rclone:
https://rclone.org/install/ - Open Drive in the desktop app
- Click Settings β Sync
- Configure your sync folder (default:
~/GeneralBots) - Click Start Sync
Sync Controls: Located in the Drive sidebar under βSync Statusβ
| Control | Description |
|---|---|
| Start | Begin synchronization |
| Stop | Stop current sync |
| Status | Shows idle, syncing, or error |
Sync Modes:
| Mode | Description |
|---|---|
| Push | Local β Cloud only |
| Pull | Cloud β Local only |
| Bisync | Bidirectional (default) |
Note: Sync features are only available in the desktop app. Web users see an βunavailableβ status as sync requires local filesystem access.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Enter | Open selected file |
Delete | Move to trash |
Ctrl+C | Copy selected |
Ctrl+V | Paste |
Ctrl+X | Cut selected |
Ctrl+A | Select all |
F2 | Rename selected |
Ctrl+F | Search files |
Ctrl+U | Upload files |
β / β | Navigate files |
Managing Files via Chat
Finding Files
Sharing Files
Creating Folders
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/drive/list | GET | List files |
/api/drive/upload | POST | Upload file |
/api/drive/download/:path | GET | Download file |
/api/drive/delete/:path | DELETE | Delete file |
/api/drive/move | POST | Move/rename file |
/api/drive/copy | POST | Copy file |
/api/drive/mkdir | POST | Create folder |
/api/drive/share | POST | Share file |
Query Parameters
| Parameter | Values | Default |
|---|---|---|
path | Folder path | / |
sort | name, size, modified | name |
order | asc, desc | asc |
view | grid, list | grid |
filter | starred, recent, trash | none |
Response Format
{
"path": "/Projects/2024",
"files": [
{
"name": "Report.pdf",
"type": "file",
"size": 245000,
"modified": "2024-03-15T10:30:00Z",
"starred": false,
"shared": true
},
{
"name": "Documents",
"type": "folder",
"modified": "2024-03-14T09:00:00Z",
"starred": true
}
],
"storage": {
"used": 4500000000,
"total": 10737418240
}
}
File Type Icons
| Type | Extensions | Icon |
|---|---|---|
| Document | .pdf, .doc, .docx | π |
| Spreadsheet | .xls, .xlsx, .csv | π |
| Presentation | .ppt, .pptx | π½οΈ |
| Image | .jpg, .png, .gif, .svg | πΌοΈ |
| Video | .mp4, .webm, .mov | π¬ |
| Audio | .mp3, .wav, .ogg | π΅ |
| Archive | .zip, .tar, .gz | π¦ |
| Code | .js, .py, .rs, .html | π» |
| Folder | - | π |
Storage Backend
Drive uses SeaweedFS for object storage:
- Scalable: Grows with your needs
- Redundant: Data replicated across nodes
- Fast: Optimized for small and large files
- S3 Compatible: Works with standard S3 tools
Configure storage in config.csv:
key,value
drive-server,http://localhost:9000
drive-bucket,bot-files
drive-quota-gb,10
Troubleshooting
Upload Fails
- Check file size (default limit: 100MB)
- Verify storage quota isnβt exceeded
- Check network connection
- Try smaller files or compress first
Files Not Displaying
- Refresh the page
- Check folder path is correct
- Verify file permissions
- Clear browser cache
Sharing Not Working
- Verify recipient email address
- Check sharing permissions
- Ensure file isnβt in Trash
See Also
- Suite Manual - Complete user guide
- Admin vs User Views - Permission levels
- Chat App - Upload files via chat
- Player App - View files in Player
- Storage API - API reference