Hi Philip,

Thanks for the help, this is the error message I got:

Error Message: No such file.<br>
                                Error Detail: The file specified in CFContent does not 
exist: http://172.16.1.151/activeFiles/1674_1562949_337_944811446_Built50.txt<p>The 
error occurred while processing an element with a general identifier of (CFCONTENT)

Where the activeFiles is a virtul directory which points to the files stored on the 
forth server. The file was just uploaded to there.

Now instead of give me blank window, it shows the standand download window ask me 
whethere to open or save the file. I choose to open , it shows the souce of my display 
page, not the page on that server, though using the correct file name.


Any idea?

Thanks again.

Sima




-----Original Message-----
From: Philip Arnold [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 4:13 PM
To: CF-Talk
Subject: RE: Problem with view uploaded files


> I have been struggling with this problem for a while, please help.
>
> We have an application which runs on three servers, we
> decided to let the user to upload attachments to a separate
> forth server. On each server we created a virtual directory
> which points to  where the file stored in the forth server.
> The upload, delete, move actions with CFFILE is OK. But when
> the user want to view or download these files, we always got
> an empty pop up window, or an error says cannot find the
> file. But it works OK if the file is stored on the same server.
>
> The code we use to force download is like this:
> <cfoutput>
> <CFHEADER NAME="Content-Disposition"
> VALUE="attachment;filename=#Form.serverFile#">
>      <CFCONTENT TYPE="unknown" reset="No"
> file="#Application.ini.Mappings.Uploadfold#ActiveFiles\#Form.s
> erverFile#
> ">
> </cfoutput>
>
> I am sure someone there must know the cause. I very much
> appreciate if you can share your knowledge with me.

What happens when you output;
#Application.ini.Mappings.Uploadfold#ActiveFiles\#Form.serverFile#

Check it actually points to the right location and has the correct
number of \'s



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to