Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : Create New Generic File Upload Controller #412 #471

Closed
wants to merge 1 commit into from

Conversation

AIABHISHEK
Copy link

Description

feat: #412
I have added uploadController.js file in middlewaresController dir which is in middlewares folder , created a coreModels folder in models and added Upload.js file , added coreRoutes.js file in routes

Some Points

  • I have kept enabled value to true for each upload
  • I have added middleware in each route which sets isPublic field on request on the basis of route
  • Controller first saves the metadata related to file then saves file in folder

@salahlalami
Copy link
Member

@AIABHISHEK please try to record video to see how it work

@polymahh
Copy link
Collaborator

polymahh commented Sep 6, 2023

@AIABHISHEK can you please remove the yarn.lock files, there is conflicts stoping us from testing
also name your branch something descriptive other than master

@salahlalami
Copy link
Member

Thank you @AIABHISHEK , this already solved here #424

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.

None yet

3 participants