Added storage init
This commit is contained in:
parent
40888326cc
commit
62dda1d425
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue