Hi I have created a form with several uploads. However when I access the data, only the file name is saved and not the file path.
This doesn't allow me to download the file.
How can I Save the whole path so that I can get a link allowing me to download these Files.
Thanks in advance.
This doesn't allow me to download the file.
How can I Save the whole path so that I can get a link allowing me to download these Files.
Thanks in advance.
Hi joskam,
If they are all saved in the same folder then you can create a link using just the filename.
If you want to save the full folder path or URL then these are available in the $form->files array and you scan save the value using a Custom Code action with code like this:
Bob
If they are all saved in the same folder then you can create a link using just the filename.
If you want to save the full folder path or URL then these are available in the $form->files array and you scan save the value using a Custom Code action with code like this:
<?php
$form->data['file_path'] = $form->files['input_name']['path'];
$form->data['file_link'] = $form->files['input_name']['link'];
?>
Please add a Debugger to your form On Submit event to see the correct names to use for your form.
Bob
This topic is locked and no more replies can be posted.