1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-28 08:40:41 +01:00
openstamanager/modules/aggiornamenti/api/create.php
2018-08-20 13:09:27 +02:00

21 lines
383 B
PHP

<?php
switch ($resource) {
case 'allegato':
$module = Modules::get($request['module']);
$upload = Uploads::upload($_FILES['upload'], [
'name' => $request['name'],
'id_module' => $module['id'],
'id_record' => $request['id'],
]);
$response['filename'] = $upload;
break;
}
return [
'allegato',
];