z-drive / z-drive-laravel-server

A Laravel app for Z drive
0 stars 0 forks source link

Cloud storage drivers #6

Open SXPanda opened 5 years ago

SXPanda commented 5 years ago

Since Z drive should work with any cloud storage solution it needs to be developed without any specific references to any of them as much as possible. I envision it working like this

Cloud::$driver->list();
Cloud::$driver->download($file_path);
Cloud::$driver->upload($file_path, $contents);

Where Cloud::$driver links to a class specified by the user's config

SXPanda commented 5 years ago

The API access points the client will use also need to be ambiguous

/zdrive/cloud/list/ /zdrive/cloud/download/ /zdrive/cloud/upload/