Need to process a file: How to select and open it?

Hello,

in an app i’m writing, i need to process the contents of a csv file from time to time. I need something like a file selection box and a button to start the processing. I’ve found how to open the file knowing the fileId, but don’t know how to get the fileId.

Thank you for any advice.

Andreas

If you do it in the web UI see https://github.com/nickv-nextcloud/gadgetbridge/blob/master/js/gadgetbridge.js#L23-L26

You can also have a look at the rest of the app. Should be quite close to what you want to do.

Thank you for the hint. It seems to look like what I’m looking for. I don’t understand how everything works together jet, but i need to learn more about the magic in nc-apps.

Best Regards
Andreas