Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37679

Re: [Help] How to use the core_files_upload() to upload a file?

$
0
0
by Mac Shah.  

Hi, I am also facing issue with same,

'contextid'=>'50',
                'component'=>'user',
                'filearea'=>'private',
                'itemid'=>'1',
                'filepath'=>'/',
                'filename'=>'test.txt',
                'filecontent'=>base64_encode('this is a txt file')

 

and got error like

{
    "exception": "moodle_exception",
    "errorcode": "nofile",
    "message": "File not specified"
}

 

do you have any idea where i am made mistake ,

Thanks


Viewing all articles
Browse latest Browse all 37679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>