-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
As a user,
I want to upload and manage files (e.g., images, documents) for my projects,
So that I can include them in my app.
Acceptance Criteria:
- Backend:
POST /api/projects/:id/files- Upload a file (max 10MB).GET /api/projects/:id/files- List all files for a project.GET /api/projects/:id/files/:fileId- Download a file.DELETE /api/projects/:id/files/:fileId- Delete a file.
- Storage:
- Files stored in
uploads/project-{id}/(local) or cloud storage (S3-compatible). - File metadata in
filestable:id,project_id,filename,path,mimetype,size,created_at.
- Files stored in
- Frontend:
FileUpload.jsx- Drag-and-drop or file picker.FileList.jsx- Display files with previews (if images) and delete options.
- Security:
- Only project owners can upload/delete files.
- File type restrictions (e.g., no
.exe).
Reactions are currently unavailable