mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-26 07:44:02 +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',
|
||
|
];
|