Check the permissions on the folder you are writing to. If your web service is
IIS, and you are allowing anonymous access, then you should have a default
guest account. That account needs to have write permission to the folder
that your cfcontent is pointed to. You should be able to look in IIS to see
what account is being used, and then browse to the folder and view its security
to find out whether that account is listed and what type of access it has.
When I did this, the IIS anonymous access account wasn't even listed - I had to
add it manually. After I did, everything worked as expected.
> I am using the following code to retrieve a tif image from our
> internal imaging server so that I can allow Internet users to retrieve
> blueprint drawings that are behind our corporate firewall.
>
> <cfhttp method = "GET"
> getasbinary="yes"
> url="http://myurlname.asp?imagename"
> >
> <cfheader name="Content-Disposition" value="attachment;
> filename=myfile.tif" >
> <cfcontent type="image/tiff" variable="#cfhttp.FileContent#">
>
> This code works great except for one problem. When the Windows dialog
> box opens and says "Do you want to open or save this file?" in XP
> professional clicking the save button works every time. But if the
> Open button is clicked we can see the file downloading to the
> temporary folder -- but as soon as it finishes the file disappears.
> And when Microsoft Office Document Imaging (the default viewer)
> launches it give an error opening document message because the file no
> longer exists. This only seems to happen on XP
> Professional--computers with XP Home Edition or non-XP operating
> systems can open the file on the fly by clicking the open button.
>
> Does anyone have a clue why XP is doing this? It is also putting a
> (1) after the file name and the other operating systems don't do that.
> Is there anyway to stop it from deleting the file so the user can open
> it? Thanks in advance for any advice.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259146
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4