Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to upload/ download and view word documents on the web?

Status
Not open for further replies.

Gill1978

Programmer
Jun 12, 2001
277
GB
How do i upload/ download and view documents in coldfusion. I've used
<img src=&quot;../userPics/#PictureName#&quot; width=&quot;103&quot; height=&quot;146&quot; border=&quot;1&quot; alt=&quot;Picture&quot;>

to view an image saved in a database!
I've managed to the same for a word document using:
<cfif fileupload1 eq &quot;&quot;>
<cfset file1 = &quot;&quot;>
<cfelse>
<cfset vpath1=GetTemplatePath()>
<cfset vlen=len(vpath1)>
<cfset vpath=left(vpath1,vlen-26)>
<cfset vpath=vpath&&quot;Documents&quot;>

<cffile action=&quot;Upload&quot;
filefield=&quot;fileupload1&quot;
destination=&quot;#vpath#&quot;
nameconflict=&quot;MAKEUNIQUE&quot;>

<cfset file1 = &quot;#File.ServerFileName#&quot; & &quot;.&quot; & &quot;#File.ServerFileExt#&quot;>
</cfif>

But how do i view this document in another page??

 
you should post this in the coldfusion forum, check their frequently asked questions also, I'm sure you'll find the answer there. Hope this helped!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top