Upload, in php, zip files to user accounts

Re: Upload, in php, zip files to user accounts

by Benjamin Ellis -
Number of replies: 0
Picture of Particularly helpful Moodlers
I would use an external service plugin (webservice) using a token. Uploading files via External services is a two-step process generally :

1. Upload the file to a draft area and receive an itemid;
2. Use the itemid to call the main functionality to move the file from the draft area to the user's file area.

There Is a way to avoid the 2 steps but it involved dealing with $_FILES directly - not recommended.

Cheers
Average of ratings: Useful (1)