Buy Now
Sign in

Upload and View file

rafaelscouto , February 07 at 22:08
R
rafaelscouto
how to upload files, save to database and view using cc6
R
rafaelscouto
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
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
R
rafaelscouto
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
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
R
rafaelscouto
create a view with the link to the file, in case I want to do this, but I could not
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
R
rafaelscouto
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
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
R
rafaelscouto
Yes, exactly
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
R
rafaelscouto
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.
E
Elitakey
I would be happy to know that either - how to show uploaded file preview in CC6 table instead of showing filename.
R
rafaelscouto
Waiting for resolution
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!