jump to navigation

NOTE: The spam filter is being unusually aggressive. If you comment does not immediately appear, it has simply been placed in moderation and I will approve it as quickly as possible. Thank you for your patience.

"Murphy was an optimist!"

It’s a official…I’m stupid! June 15, 2006 12:13 pm

Posted by Doug McCaughan in : Daily Life
, trackback

The error "500 unexpected end of part" is caused by not including a backslash on a move operation with CFFILE.

<cffile action="MOVE" source="c:\temp\foo.jpg" destination="c:\temp\newdirectory">

Should be:

<cffile action="MOVE" source="c:\temp\foo.jpg" destination="c:\temp\newdirectory\">

Written that way makes it seem self-evident. However, the documentation states "If not an absolute path, it is relative to the source directory." implying that:

<cffile action="MOVE" source="c:\temp\foo.jpg" destination="newdirectory">

should be alright. The backslash is still necessary!

The big burn on this stupid mistake is that I’m now a day and a half behind schedule on my work, my development server still doesn’t work, and I have to move forward by publishing my work directly to the client’s website (yuck!). Fortunately it is a staging server and not a production server.

Comments after advertisement


no comments yet - be the first?