17 include_once (
"FDL/modcard.php");
28 $usage->setStrictMode(
false);
38 }
catch (\Exception $e) {
39 $errors []= $e->getMessage();
42 if (count($errors) <= 0) {
48 $action->lay->set(
"docid",
$doc->getPropertyValue(
"id"));
49 $action->lay->set(
"title",
$doc->getTitle());
52 $errors [] = _(
"Unable to store the file");
56 if (count($errors) <= 0) {
60 'url' => sprintf(
'?sole=A&app=FDL&action=EXPORTFILE&cache=no&docid=%s&attrid=img_file&index=-1',
$doc->getPropertyValue(
'id'))
66 'message' => implode(
"\n", $errors)
70 $action->lay->set(
"DATA", json_encode(
$data, JSON_PRETTY_PRINT));
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
Verify arguments for action function.
insert_file(Doc &$doc, $attrid, $strict=false)
if($file) if($subject==""&&$file) if($subject=="") $err
ckupload(Action &$action)