Trying to upload a document in Document Library portlet throws a JS error.
Steps to reproduce:
- Add "Document Library" portlet
- Drag and drop a file to the "Document Library portlet"
- File will be upload successfully or fail successfully
- Browser throws a JS error
instance.get(...).getFolderId is not a function