By maabik - Thu Aug 08, 2019 7:05 pm
- Thu Aug 08, 2019 7:05 pm
#825879
Hello,
I am using a MultipleFile field to upload some files (different formats), I would to update the name of uploaded files. For that I used a trigger that fire after Dynaform where I am using the AppDocument::update()
I did another test of the update function on File Field and it is working properly.
Can you please assist me on this?
Regards
I am using a MultipleFile field to upload some files (different formats), I would to update the name of uploaded files. For that I used a trigger that fire after Dynaform where I am using the AppDocument::update()
Code: Select all
In the database, the field 'APP_DOC_FILENAME' (in table “APP_DOCUMENT”) contains the new value of file title. However, these new values don’t show up in the files list in form and all files keep their original titles. //Code
//...
$d = new AppDocument();
$aFileInfo = $d->Load($doc['APP_DOC_UID'], $doc['DOC_VERSION']);
$aFileInfo['APP_DOC_FILENAME'] = $filename;
$d->update($aFileInfo);
//...
I did another test of the update function on File Field and it is working properly.
Can you please assist me on this?
Regards