1
0
Fork 0
mirror of synced 2024-06-18 18:54:55 +12:00

Added storage init

This commit is contained in:
Eldad Fux 2020-06-26 15:28:57 +03:00
parent 40888326cc
commit 62dda1d425

View file

@ -23,8 +23,6 @@ use Appwrite\Storage\Compression\Algorithms\GZIP;
use Appwrite\Resize\Resize;
use Appwrite\OpenSSL\OpenSSL;
Storage::addDevice('local', new Local(APP_STORAGE_UPLOADS.'/app-'.$project->getId()));
$fileLogos = [ // Based on this list @see http://stackoverflow.com/a/4212908/2299554
'default' => __DIR__.'/../../config/files/none.png',
@ -131,6 +129,10 @@ $mimes = [
'application/pdf',
];
$utopia->init(function () use ($project) {
Storage::addDevice('local', new Local(APP_STORAGE_UPLOADS.'/app-'.$project->getId()));
}, 'storage');
$utopia->post('/v1/storage/files')
->desc('Create File')
->groups(['api', 'storage'])