mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-14 17:34:49 +01:00
21 lines
383 B
PHP
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',
|
|
];
|