Dear all,
How to save url of file upload? Right now, it only save name of the file. I have no idea with this π
Thanks
How to save url of file upload? Right now, it only save name of the file. I have no idea with this π
Thanks
Hi Yudhizth,
After the Upload Files action the URL is in $form->files['input_name']['link'] (add a debugger to see the correct values). You can copy this into the $form->data array to save it to the database
But you don't need to know that, you can always rebuild the URL from the file name.
Bob
After the Upload Files action the URL is in $form->files['input_name']['link'] (add a debugger to see the correct values). You can copy this into the $form->data array to save it to the database
<?php
$form->data['file_url'] = $form->files['input_name']['link'];
?>
But you don't need to know that, you can always rebuild the URL from the file name.
Bob
This topic is locked and no more replies can be posted.