ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Button to download files

kgriffin 06 Dec, 2020
Can you please tell me how to create a button to download files from a form? Is there a specific download action or event or task (not sure what to call it) to do this? Or do I just use a link that points to the file?

Thanks.
kgriffin 12 Dec, 2020
I am refining this question as I have found the download action, but I keep getting file not found.

I have the download action file directory set to {path:}/uploads/my_directory/

I have the button in the form as a link to the standalone page with the download action with the url parameter 'file' set to the value of the field with the file name. The debugger shows the correct file name is passed as does the url. I have also checked the directory to make sure the file exists. It does.

Not sure if this makes a difference or not, but the debugger shows an empty array at the end. Not sure if this has anything to do with anything.DownloadFile.JPG
Max_admin 14 Dec, 2020
The "File or directory path" setting should be the path to your file to download!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
kgriffin 14 Dec, 2020
It is. As I stated in my refined question, the path I have is {path:}/uploads/my_directory/. That is the path of the file directory in which the file resides.
Max_admin 14 Dec, 2020
Answer
that's a directory, not a file, you need a path to a file!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
kgriffin 15 Dec, 2020
So you are telling me that I have to have a separate download action for every field that has a file name stored that I want to download? I can't pass that file name to the download action and have one download action for multiple downloads. Okay.
Max_admin 17 Dec, 2020
I did not say that, you can add a shortcode to the file path:
{path:}/uploads/my_directory/{var:my_file_name}
Now the my_file_name should hold the file you want to fetch for download, you can set this var with a PHP action or a Variables action
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
bareen12 20 Feb, 2022
hello everyone
I am currently working on a similar project. I am failed to create a video download button on my Pinterest related website even though I follow the same steps that you people already discuss
Max_admin 20 Feb, 2022
you just need to have the download action in the last form page and that will trigger a download, assuming that the file path is correct, you may try with a static file path first!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
You need to login to be able to post a reply.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com