public function upload(Request $request)
 {
     Log::info('Uploading Files!');
     $file = $request->file;
     $extension = $file->getClientOriginalExtension();
     Storage::disk('local')->put($file->getFilename() . '.' . $extension, File::get($file));
     $entry = new Fileentry();
     $entry->mime = $file->getClientMimeType();
     $entry->original_filename = $file->getClientOriginalName();
     $entry->filename = $file->getFilename() . '.' . $extension;
     $entry->model_id = "0";
     //create thumb for images
     if (strpos($file->getClientMimeType(), "image/") !== false) {
         $image = new ImageResize($file);
         $image->resizeToHeight(150);
         $entry->thumb = $image->getImageAsString();
     }
     $entry->save();
     return ['success' => false, 'data' => 200];
 }