Skip to content

Feature/file upload pop up#38

Merged
benjaminJohnson2204 merged 287 commits intomainfrom
feature/FileUploadPopUp
Apr 27, 2025
Merged

Feature/file upload pop up#38
benjaminJohnson2204 merged 287 commits intomainfrom
feature/FileUploadPopUp

Conversation

@hpai1
Copy link
Copy Markdown
Contributor

@hpai1 hpai1 commented Apr 15, 2024

Tracking Info

Resolves #6

Changes

Added a new page called FileTesting to house the File Upload modal. On FileTesting.tsx, you can see a button component that invokes the FileUploadPopup when clicked. This allows you to style the button any way you want and still be able to retain the functionality.

The bulk of the code is in the file FileUploadPopupWindow.tsx. It contains all the code to add files to the backend, drag and drop files, and delete files.

I might have installed some new packages so be sure to run npm install first.

Testing

  1. Run npm install
  2. Start the backend by going into the backend directory and running npm run start
  3. Start the frontend by going into the frontend directory and running npm install

Navigate to \FileTesting on the localhost and open developer tools. For example http://localhost:5173/FileTesting.

Screenshot 2024-04-15 at 8 21 20 AM

It should look similar to the above screenshot.

Click on the File Upload button (not styled at all) and choose 1 or multiple files. Note that the maximum limit is 10.

Screenshot 2024-04-15 at 8 46 35 AM

As your files are uploading, you should see the progress bar changing. Also, the console will say File Uploaded Successfully to ensure that it has been uploaded. From the backend, we can see that the files were actually uploaded:

Screenshot 2024-04-15 at 8 32 43 AM

If you click the 'x' on the file list, we see that the file goes away and the console says the file has been deleted. On google drive, we also see that the file gets deleted automatically.

Screenshot 2024-04-15 at 8 33 30 AM

hpai1 and others added 28 commits April 14, 2025 18:45
…r for loading. changed style to reflect changes and include a delay when closing popup
…pplication-Overhaul into feature/FileUploadPopUp
@benjaminJohnson2204 benjaminJohnson2204 merged commit e76a124 into main Apr 27, 2025
0 of 2 checks passed
@benjaminJohnson2204 benjaminJohnson2204 deleted the feature/FileUploadPopUp branch April 27, 2025 02:48
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.

File Upload

10 participants