Posts made by Howard Miller

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I assume you mean the user "private files" area. I've never done it, but there's a web service function 'core_files_upload'. You need to supply certain information such as the contextid and itemid for the file and it should be possible to find these for the private files area - see https://moodledev.io/docs/4.1/apis/subsystems/files.

You can get lots of information about the user with 'core_user_get_users' function.

Maybe this gives you a start? Often these sort of things require a 'cocktail' of web service calls to get all the info you need. However, sometimes one step is annoyingly missing.