General developer forum

Store actual file in specific place

 
Picture of Hossein Poursaeedi
Store actual file in specific place
 

Hey guys, 

based on this topic , i can get file url but I have another question related file plugin, is there anyway which i can store file in specific folder in moodle data ?

i need actual file instead of image url . 
in theme , we have "set_updatedcallback" method and can set it  to store file during save setting, but in file plugin part, i need to store image  in  local plugin setting part.

i dont think its good idea which we get url in same lib and store it .

any suggestion ?

 
Average of ratings: -
Picture of Hossein Poursaeedi
Re: Store actual file in specific place
 

as i Understand , the "local_xxx_pluginfile" method call once we request image url, so any callback solution ?

 
Average of ratings: -
Picture of Hossein Poursaeedi
Re: Store actual file in specific place
 
I have got the issue , it need to use 'admin_setting_configstoredfile' instead. 
 
Average of ratings: -