Hi!
How can I link to an uploaded file? Solutons described in FAQ (https://www.chronoengine.com/faqs/53-cfv4/cfv4-file-uploads/2681-how-can-i-link-to-an-uploaded-file.html) and in forum (http://www.chronoengine.com/forums/posts/f5/t81760.html) does not work:
{file1} variable is correct, but
<a href='{_PLUGINS_.upload_files.file1.link}' >{_PLUGINS_.upload_files.file1.name}</a>
or
<?php
$link = $form->data[_PLUGINS_][upload_files][file1][link];
$link = "<a href='{$link}'>Click to download</a>";
$form->data['link'] = $link;
?>
variables are empty.
Any suggestions? Thank you in advance.
How can I link to an uploaded file? Solutons described in FAQ (https://www.chronoengine.com/faqs/53-cfv4/cfv4-file-uploads/2681-how-can-i-link-to-an-uploaded-file.html) and in forum (http://www.chronoengine.com/forums/posts/f5/t81760.html) does not work:
{file1} variable is correct, but
<a href='{_PLUGINS_.upload_files.file1.link}' >{_PLUGINS_.upload_files.file1.name}</a>
or
<?php
$link = $form->data[_PLUGINS_][upload_files][file1][link];
$link = "<a href='{$link}'>Click to download</a>";
$form->data['link'] = $link;
?>
variables are empty.
Any suggestions? Thank you in advance.
Hello artem73,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I link to an uploaded file?
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I link to an uploaded file?
P.S: I'm just an automated service😉
No, it does not work.
<a href='{_PLUGINS_.upload_files.input_file_1.link}' >{_PLUGINS_.upload_files.input_file_1.name}</a>
_PLUGINS_ variable is empty.
<a href='{_PLUGINS_.upload_files.input_file_1.link}' >{_PLUGINS_.upload_files.input_file_1.name}</a>
_PLUGINS_ variable is empty.
Solution:
$form->files[file1][name][link] instead of $form->data[_PLUGINS_][upload_files][file1][link]
$form->files[file1][name][link] instead of $form->data[_PLUGINS_][upload_files][file1][link]
This topic is locked and no more replies can be posted.