Anu
Joined: 01 Jan 2010 Posts: 82
|
Posted: Fri Jul 09, 2010 9:59 am Post subject: View the uploaded file |
|
|
Hi All,
When we upload some data into the database,using the file_column plugin.we can download the data,similarly we can view the data in the browser too..
For example:
<a href="<%= url_for_file_column(attach,'filepath')%>">View</a>
In the above code,attach is the variable,where we are getting the files.and filepath is the filedname.View is the title.
When we click on the view,it will shows you the which data was saved under the filepath.we can view the text files,image files here.but the pdf documents need to be downloaded to view.
Thank you,
Anu  |
|