> 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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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

Reply via email to