Upload and View file

rafaelscouto 07 Feb, 2018
how to upload files, save to database and view using cc6
rafaelscouto 08 Feb, 2018
The upload is already working but I can not see the file.
A pdf.

Remembering that I do not want to download, just open in the browse
Max_admin 11 Feb, 2018
Hi Rafael,

Some files can be opened like images, you can configure the download action to display the files instead of downloading them, but only if the file is image.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rafaelscouto 12 Feb, 2018
As I said before, the upload is working, but I can not see the link of this file, being unable to see the pdf and then download it
Max_admin 12 Feb, 2018
Did you create a view with the link to the file ? or a link to an event with the download action inside ?

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rafaelscouto 12 Feb, 2018
create a view with the link to the file, in case I want to do this, but I could not
Max_admin 17 Feb, 2018
Hi Refael,

A view of type Link Button with the file url in the url box should be okay, or a view of type HTML and use the code below:
<a href="http://link to file">View file</a>
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rafaelscouto 17 Feb, 2018
In this way as you wrote it is a manual way to solve.

I do not think you understand what I need to do.

I can already upload the file, PDF, it is saved in the folder of my preference, now I need to make this file available for viewing or download and this needs to be done automatically.

I can not manually create more than 100 links to view these PDFs every 2 or 3 days.

I need to make it when clicking to view the file, open that file. I think the idea is the same to visualize an ITEM Joomla, when I click to view the information, but in my case, view the PDF file
Max_admin 18 Feb, 2018
Hi Rafael,

So you want to save a record when the file is uploaded then display a link to download/view the file based on the records saved, correct ?

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 18 Feb, 2018
Hi Rafael,

So you need a "Save data" action when the file is uploaded, and you need a database table created to store this information of course.

After saving the record you can list all the records in a table, there is a FAQ on how to do this.

Please let us know if you need help with any of these steps.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rafaelscouto 18 Feb, 2018
Yes, I can do all this already.

I already created the table with the data saved in the database, what I get is i filename.pdf but you can not see it or download it.
Elita- 22 Feb, 2018
I would be happy to know that either - how to show uploaded file preview in CC6 table instead of showing filename.
Max_admin 15 Mar, 2018
Hi,

It depends on the file type, if the file is an image then you can either use an image tag <img and build the src attribute to display it OR use the download action to display it too.

But if its another file type then a file preview may not be easy unless you use an <embed tag.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
natopx 20 Aug, 2018
Hello, after the image has been uploaded, how do I display the image?It only shows the name of the image, but it would be interesting to show the image itself.How do I do that ?Thanks if you can help. Upload and View file image 1Look at the image, I just need it to show the image instead of the name.
amheng5 24 Feb, 2019
I've successfully created option to view PDF or any file that was uploaded and now want to view/download pdf/file.

My steps:

Under View Tab--> Create an "html" under custom tab
my code: I named it "html_view_upload1_list"
<a href="domain url/components/com_chronoforms6/chronoforms/uploads/{var:table_name.row.model.fieldname of file}" target="_blank"><img src="domain url/components/com_chronoforms6/chronoforms/uploads/{var:table_name.row.model.field_name of file}" /></a>

Under View Tab

Edit your Table -->

columns views:
model.fieldname of file:{view:html_view_upload1_list}

Hope this helps anyone. Many trial and error for me to figure out.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger