Closed SamTV12345 closed 11 months ago
This is the pull request we are working on: https://github.com/ether/etherpad-lite/pull/5796
You can directly compare err.code with formidableErrors.biggerThanMaxFileSize
no need to wrap form.parse in a promise. if no callback is provided it returns a promise
make sure uploadDir exists before form.parse is called
For the rest see https://github.com/node-formidable/formidable/issues/787#issuecomment-1612105698
It is still erroring out. I have no idea why. We have a test that updates the text of a pad but it stays the same without updating it.
@GrosSacASac Thanks for the pointers regarding error handling & promise. Apart from the code above, we use formidable for parsing fields in our API. When using multipart/form-data, the fields values are Arrays now - but iirc that is already documented in the Changelog..
Support plan
Context
What problem are you trying to solve?
We tried to update to the next major version as v2 is going to be deprecated.
We don't use Formidable very extensive but we have a few occurrences where the user can upload a pad. The problem is that in that case the file is not updated and stays the same.
Do you have a new or modified API suggestion to solve the problem?
No