Skip to content

Added document upload feature (frontend + backend integration) - #26

Open
Raghavjha60570 wants to merge 2 commits into
Ashish94312:mainfrom
Raghavjha60570:feature/document-upload
Open

Added document upload feature (frontend + backend integration)#26
Raghavjha60570 wants to merge 2 commits into
Ashish94312:mainfrom
Raghavjha60570:feature/document-upload

Conversation

@Raghavjha60570

Copy link
Copy Markdown

##Description

This pull request implements the feature requested in issue #5, allowing users to upload documents directly from the dashboard. The uploaded documents are stored securely on the server and can be accessed within the workspace or project view.

##Changes Made

Added a new component DocumentUploader.jsx to handle document upload from the frontend.

Integrated the upload functionality in Dashboard.jsx.

Implemented a new backend API route /api/upload-document using multer for handling file uploads.

Configured server-side validation to allow only PDF, DOC, DOCX, and TXT files with a size limit of 10MB.

Created the directory structure uploads/documents for storing uploaded files.

##How to Test

Start both backend and frontend servers.

Navigate to the Dashboard page.

Click on the Upload Document button.

Select a document file (PDF/DOC/DOCX/TXT).

Confirm that the upload completes successfully and the file appears in the uploads/documents directory.

Related Issue

fixed #5

@Ashish94312

Ashish94312 commented Oct 29, 2025

Copy link
Copy Markdown
Owner
Screenshot 2025-10-29 at 10 03 34 AM

Currently this is how rendering is appearing , can you please improve it and make it in proper format. Also it shoud support doc file upload, and also it should be look like other regular doc file, and editable format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A feature to add/upload documents.

2 participants