Archive for November, 2009

cffile Disappearing Backslashes

Thursday, November 12th, 2009

I’ve never encountered this one, so I thought I’d share…

I was running this simple rename command on an xml response handler page… very, very simple, right?

<cffile action = "rename" source = "c:\inetpub\mysite\images\tn_0000.png" destination = "c:\inetpub\mysite\images\renamed.png">

But here was the error I was getting:

Attribute validation error for tag CFFILE. The value of the attribute source, which is currently c:inetpubmysiteimages tn_0000.png, is invalid.

Whaaat? where did all my backslashes go?? Well, I don’t know… I guess the bermuda triangle of Coldfusion. Either way, after some trial and error, I found the solution:

<cffile action = "rename" source = "c:/inetpub/mysite/images/tn_0000.png" destination = "c:/inetpub/mysite/images/renamed.png">

just change them all to forward slashes… it worked!

Flowplayer + SWFObject = Error

Monday, November 9th, 2009

I was recently using both flowplayer and SWFobject on the same page. I noticed if I placed the javascript for SWFobject before calling the flowplayer container, flowplayer would spit out the error “Flowplayer cannot Access Element: player”. However, placing the javascript AFTER calling the player element made the error disappear. Good to know!

Flixcloud to Influxis File Transfers

Wednesday, November 4th, 2009

I’ve recently been working on a project that had a user upload a video, and then that video was sent to our transcoding service, Flixcloud. After transcoding took place, Flixcloud claimed they would upload the video wherever we needed, so I had it sent to our FMS hosting provider, Influxis. Problem: the jobs were completing successfully, but my video files were not uploading to Influxis as promised. oh dear. After much back and forth between both companies, here is what we learned:

Flixcloud ONLY sends via FTP in passive mode. Influxis ONLY receives via FTP in active mode. An impasse.

Luckily, it was suggested trying SFTP. Behold! It Worked! So the next time you are using this duo for your transcoding and FMS needs, just remember to use SFTP.