public function store(IFile $file)
 {
     if (is_null($file->getUID())) {
         $file->generateUID();
     }
     $data = ['id' => $file->getUID(), 'name' => $file->getName(), 'full_path' => $file->getFullPath(), 'size' => $file->getSize(), 'content_type' => $file->getContentType(), 'is_image' => $file->isImage()];
     return $this->context->table('media_storage')->insert($data);
 }
 public function delete(IFile $file, $webRoot)
 {
     $files = $this->databaseStorage->deleteFiles(FileFilter::create()->findByName($file->getName()));
     foreach ($files as $file) {
         $this->deleteById($file->id, $webRoot);
     }
     return true;
     //?
 }