by T. H..
Hi,
We have a PHP web application. We need to be able to move files from our web app to a specific folder in a specific course. Students of the course could then download the files from the folder.
I have managed to upload a file a draft area using a web service function “core_files_upload”.
Question 1: Is it possible to upload the file directly to a specific folder instead of draft area using “core_files_upload”? Currently filearea is set to ‘draft’.
Question 2: How can I move a file from draft area to a specific folder? There seems to be a function called “mod_assign_save_submission”. I assume that it doesn’t work with folders.