tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

Uploading Documents via node server fails (Bulk Upload) (Dependency Updates) #1573

Open dgrumieaux opened 6 years ago

dgrumieaux commented 6 years ago

With the latest dependency updates change (see #1529) uploading via bulk upload fails with a multipart/form-data request error.

dgrumieaux commented 6 years ago

As a temporary workaround, use the grunt tomcat build option instead.

dgrumieaux commented 6 years ago

Unable to find examples yet, but may be able to add support as connect middleware via https://github.com/pillarjs/multiparty

dgrumieaux commented 6 years ago

Noted that the failure case in node returns a content-length response to the browser whereas the response in a Tomcat setting does not return a content-length response at all. Potentially stripping the content-length response will solve the issue.

dgrumieaux commented 6 years ago

Successful upload call looks like this (running a Tomcat webapp):

screen shot 2018-02-15 at 2 21 53 pm

Unsuccessful upload call looks like this (running node server):

screen shot 2018-02-15 at 2 21 25 pm

dgrumieaux commented 6 years ago

Have tried adding in multiparty and a few other npm modules to support this. May be an issue with the proxy library we use now where it is not forwarding the expected headers to the server.