A comprehensive file management system with support for folder hierarchies, permissions, and more.
The system now supports uploading entire folder structures with nested files and subfolders. This feature allows you to:
- Upload folders with their complete hierarchy
- Preserve the relationships between files and folders
- Track the folder structure in the database
For detailed information on how to use the Folder Upload API, see:
To upload a folder with its structure:
- Make a
multipart/form-dataPOST request to/api/v2/files/upload/folder - Include your files in the
filesfield - Include a JSON string describing the folder structure in the
folderStructurefield
Example folder structure format:
{
"file1.txt": {
"path": "/folder1",
"name": "file1.txt"
},
"folder1/file2.txt": {
"path": "/folder1",
"name": "file2.txt"
},
"folder1/subfolder/file3.txt": {
"path": "/folder1/subfolder",
"name": "file3.txt"
}
}- File and folder management
- Hierarchical folder structure
- Access control and permissions
- File versioning
- Trash and recovery
- Audit logging
- Security groups
- Clone the repository
- Install dependencies:
npm install - Set up environment variables (see
.env.example) - Run the database migrations:
npx prisma migrate dev - Start the server:
npm start
The API is organized into versioned routes:
- V1: Core functionality
- V2: Enhanced features including folder upload
For detailed API documentation, see the docs directory.