> I don't get an error from cfhttp, but the files don't show up 
> on the server.  I even used cftry->cfcatch type=any, and 
> still no errors.

You should use CFHTTP.Header to see what you get back.

> ENews-milan is the IIS Virtual Directory I created for this purpose.

Did you make that directory writeable? IIS doesn't allow you to write, by
default. You check the "write" checkbox within the "Home Directory" tab for
a virtual server, and within whatever the default tab is (I think) for a
virtual directory.

> Nope, I haven't tried this as I'm not sure what WebDAV is.

When you use CFHTTP with METHOD="PUT", you're using WebDAV, essentially.

> I'll do some research and give that a try.  Again, I'm not 
> sure the best way to approach this as all this Windows 
> development is making my head hurt.  ;)

This isn't really Windows-specific, although the permissions issue is.

> Right now the users manually put the files on the servers 
> themselves, and we want to do this for them.  It might turn 
> out that the best way to do this is a watched directory like 
> you stated.  But the user needs to fill in a bunch of details 
> about these files that get loaded to a DB and then posted on 
> their Intranet site (we do this part manually right now), and 
> our hope was to let them do all of this from one simple page. 
>  If you or anybody else knows a better way to do this, please 
> speak up.  The cfhttp method was just one thing we tried, but 
> we aren't married to that idea.

The ideal solution would be to run CF as a user with the appropriate rights,
but you've mentioned the resistance to that already. Nevertheless, this is
what I'd recommend. You could do this with little effort, if you're willing
to use an account within the local Administrators group; by default, the
ACLs will already be set to allow Administrators and SYSTEM to access
everything needed to run CF.

If that's a non-starter, you could do all of the detail collection, etc,
when you allow the user to upload the file to a local directory, then,
whatever process you use to get the file to the remote share, you'd still
have all of that information. You could use Windows Scripting and/or batch
processing and the runas command to run a script as the appropriate user;
that script could copy files from the local partition to the remote share.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263839
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to