Link to home
Start Free TrialLog in
Avatar of sglee
sglee

asked on

Making files available on Coldfusion website for downloading

Hi,

 I have Coldfusion server V7 and like to design a webpage where I can post exiting Word, Excel or PDF document so that sales people who work outside of the office to download to read or print or forward it to someone else.

 Are there some kind of existing templates available that I can use instead of trying to develop HTML/CFML code to accomplish this?

Thanks.
Avatar of erikTsomik
erikTsomik
Flag of United States of America image

You can just use regular upload functionality.

Will you upload files or you just want to display files?
Avatar of sglee
sglee

ASKER

I will not upload anything personally. Files will be created by users and stored on the file server. From the CF IIS server, I was hoping to simply point  to network share folder like this \\DC1\Share\OfficeGeneral\OutsideSales\ExpenseReportTemplate.doc.

Outside sales people will visit the website like http://www.domain.com/documents/login.cfm, login in using their credentials and they will see the links like

FolderA --> expensereport.doc,  salesreport_template.xls, ... etc
FolderB --> OfficeHoliday2018.pdf, ... etc

When they click the file name, they can download this files to their computers and open/edit/print.
Avatar of sglee

ASKER

I got the documents available on the webpage using the command like below:
<a href="/documents/files/Employee_Vacation_Schedule.xls">

Currently "Employee_Vacation_Schedule.XLS" is located in the C drive of this web server. I copied it from the shared folder off production server. Since this file is updated daily by network users daily, I like to link this page to the document on the production server.
How can I change this existing A HREF statement to link the file to the original folder located on production server?

Say we have the file located like this: \\Server1\Shared\Office\Employee_Vacation_Schedule.XLS
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.