Hello to all!
I have a nicely set up Table with the uploaded filename view. I wanted to create file download link to download each listed file but did not suceed.
Steps I have done so far:
1. Create file download function download_photo:
a) with the direct link to folder on server where the file is located, e.g. /var/www/vhosts/domain.com/images/uploads/FOTO/ in
File or directory path field instead of built-in {path:root};
b) leave all other fields as default;
2. Create photo_download_link wiew Link with Content {var:submissions_list.row.Submission.spFoto} where submissions_list is Read Data function and Submission.spFoto is Model.Field; URL and/or URL parameters aid={var:submissions_list.row.Submission.aid}; Event photo_download
3. Create Event photo_download with the function call: {fn:download_photo} ;
4. And finally, add the view to the Table - Columns views - Submission.spFoto: {view:photo_download_link}
So - filename is visible in the Table, link has been created. By pressing that link, download function has being executed; only problem is that it downloads FOTO instead of file.
My suspicion is that I have to somehow include the filename in that path - tried {var:submissions_list.row.Submission.spFoto} and {data:Submission.spFoto} with no sucess.
Any suggestions?
BTW - if I choose Auto selection option "Last modified" - i get file download, but as expected - only the last modified file, not the file for each Submission in the list.
Any sugestions?
Elita
I have a nicely set up Table with the uploaded filename view. I wanted to create file download link to download each listed file but did not suceed.
Steps I have done so far:
1. Create file download function download_photo:
a) with the direct link to folder on server where the file is located, e.g. /var/www/vhosts/domain.com/images/uploads/FOTO/ in
File or directory path field instead of built-in {path:root};
b) leave all other fields as default;
2. Create photo_download_link wiew Link with Content {var:submissions_list.row.Submission.spFoto} where submissions_list is Read Data function and Submission.spFoto is Model.Field; URL and/or URL parameters aid={var:submissions_list.row.Submission.aid}; Event photo_download
3. Create Event photo_download with the function call: {fn:download_photo} ;
4. And finally, add the view to the Table - Columns views - Submission.spFoto: {view:photo_download_link}
So - filename is visible in the Table, link has been created. By pressing that link, download function has being executed; only problem is that it downloads FOTO instead of file.
My suspicion is that I have to somehow include the filename in that path - tried {var:submissions_list.row.Submission.spFoto} and {data:Submission.spFoto} with no sucess.
Any suggestions?
BTW - if I choose Auto selection option "Last modified" - i get file download, but as expected - only the last modified file, not the file for each Submission in the list.
Any sugestions?
Elita