How to upload/download files via JupyterLab-rendered frontends


My JupyterHub serves me a JupyterLab instance in which a external website is rendered (using this package).

This website is a personal application, a Vue-based frontend requesting a personal server via self-API.

I want to add buttons in my app to upload and download files from and to the JupyterLab file system. I want my API to give files to JupyterLab and receive files from it. Note that the JupyterLab file system differs from my laptop file system (as JupyterHub is used).

How can I do that? When I try such things in my frontend, it opens a “Select file” dialog using my laptop file system.

Thanks for your help!