To put a file to an enabled server, you simply have to use the following code:
cfhttp method="PUT" url="http://Server/Directory/Filename" username="username" password="password" throwonerror="true" cfhttpparam type="header" name="Content-Type" value="content/type"Don't forget to check the cfhttp response for possible errors!
cfhttpparam type="file" name="file" file="#a_str_full_path_of_filename#"
/cfhttp
1 comment:
f you like WebDAV, check out the BarracudaDrive home server with integrated WebDAV server.
http://barracudaserver.com/products/BarracudaDrive/
A really easy to use and cool WebDAV client is Total Commander: http://www.ghisler.com/
Post a Comment