-
☆ A M B ☆
- 756 Posts
I have a module that includes a form that I need to upload a file and also return the file uploaded back to the form field to reference the file uploaded after they click the file.
I’m using the renderFormElement function built into docManager by including the tmpvars.inc.php below is how I’m currently trying to solve.
-- Include the docManager Tmplvars file for renderFormElement
include_once($modx->config[’base_path’].’manager/includes/tmplvars.inc.php’);
-- The code to output the form icon to upload a file
renderFormElement(’image’, ’add’.$value, ’’, ’’, ’’)
?? How do I get the file uploaded to post back to the form fields to actually store the referrence to the file uploaded. The file upload works fine it’s just not posting back to the form with the file information.
Thanks for your help.
Cheers
Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
Visit
CharlesMx.com for latest news and status updates.
-
☆ A M B ☆
- 756 Posts
I was able to solve it later that day, sorry for the delay on updating the post.
Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
Visit
CharlesMx.com for latest news and status updates.