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

741 acas forms blob value support #742

Merged
merged 3 commits into from
May 13, 2021

Conversation

brianbolt
Copy link
Contributor

No description provided.

@brianbolt brianbolt requested a review from bffrost May 12, 2021 17:20
Copy link
Collaborator

@bffrost bffrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't say I fully understand the multer stuff but this generally makes sense to me. Added a few minor comments but otherwise looks good

modules/Components/src/client/ACASFormFields.coffee Outdated Show resolved Hide resolved
modules/ServerAPI/src/server/routes/FileServices.coffee Outdated Show resolved Hide resolved
@brianbolt
Copy link
Contributor Author

Can't say I fully understand the multer stuff but this generally makes sense to me. Added a few minor comments but otherwise looks good

The multer funciton is just a request middleware that takes multipart posts of files and writes them to a directory so that they are immediately available in the request. By using it only in the blob route it won't affect other routes. However, at somepoint in the future we should replace the jquery-file-upload-middleware package with multer which is the express recommended middleware (atleast according to their upgrade guide)

@brianbolt brianbolt merged commit e70daec into release/1.13.6 May 13, 2021
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.

2 participants