how to upload files, save to database and view using cc6
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
A pdf.
Remembering that I do not want to download, just open in the browse
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
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
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
Did you create a view with the link to the file ? or a link to an event with the download action inside ?
Best regards
Best regards
create a view with the link to the file, in case I want to do this, but I could not
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 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
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
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
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
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
Yes, exactly
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
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
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.
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.
I would be happy to know that either - how to show uploaded file preview in CC6 table instead of showing filename.
Waiting for resolution
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
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
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.
Look at the image, I just need it to show the image instead of the name.

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.
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.