1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-13 08:56:08 +01:00
openstamanager/modules/aggiornamenti/api/create.php
2018-07-31 14:50:28 +02:00

21 lines
378 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' => $id_record,
]);
$results['filename'] = $upload;
break;
}
return [
'allegato',
];