I am creating a plugin which should not store files on moodle(3.5v) filedir, it will store my video files on some third party area (vimeo or amazon s3 bucket). Some how moodle filemanager uploads files in filedir and create same content hash of uploaded file even same file upload from different area in moodle therefore i cant unlink this file.
My concern is: I want to get file content and upload it to other third party space and then unlink that file from moodle.
Is there any other way to upload files and get content in moodle?
I dont want this file in moodle directory. How can i do this?