mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-13 08:56:08 +01:00
21 lines
378 B
PHP
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',
|
|
];
|