Using cfhttp, copied file is appended and original is overwritten

I’m not sure if its the cfhttp configuration or if this is a problem with the webdav server configuration.

Here’s my CF code:

<cftry>
    <cfhttp  method="put" url="https://#Application.psupload.Webdavserver##Application.psupload.Filet xt#" username="clb39" password="5wimF1shco" throwonerror="yes" path="#Application.psupload.Pathtxt#" multipart="Yes" timeout="30000">
        <cfhttpparam type="file" name="#Application.psupload.Filetxt#" file="#Application.psupload.Pathtxt##Application.psupload.Filetxt#">
    </cfhttp>
    <cfset Application.psupload.msg="#Application.psupload.msg# Webdav Success<br>">
    <cfcatch>
        <cfset Application.psupload.msg="#Application.psupload.msg# Webdav Failure<br>">
    </cfcatch>
</cftry>

It looks like a ‘return code’ that overwrites the original file:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>201 Created</title>
</head><body>
<h1>Created</h1>
<p>Resource //Upload_1103080403.txt has been created.</p>
<hr />
<address>Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.7d DAV/2 Server at  Port 80</address>
</body></html>

The copied file is made correctly, but some how 4 lines are added, and the 3rd one has this string each time:

-------------------------------7d0d117230764–

Any thoughts? Is it cfhttp or Webdav?

I’ve done a little research and I’ve seen the ‘7d0d117230764’ referenced in a few google searches relating to API’s/uploads, but nothing definitive. Anyone have any ideas?

TIA,

CB

Hi Beards247, welcome to the forums,

It’s been ages since I worked with CF, but that looks like a “boundary” with a generated random hash value.
Something to do with the “multipart”?