Uploading Encrypted Documents

As a reminder, if you upload CFML documents that are encrypted, be sure to use binary mode. I spent about an hour trying to figure out why a template was showing it's source instead of running. Turns out my FTP client was uploading all CFMs in ASCII and this was corrupting the encrypted documents.

Archived Comments

Comment 1 by Pete Freitag posted on 6/3/2004 at 4:54 AM

Yep, our customers run into this one a lot with our tags.

Comment 2 by Hugo posted on 6/4/2004 at 7:03 PM

Why use ASCII in first place? I usually live under Win2k on the client/development side, but most servers are Solaris. I try to keep all text-files in Unix format, and I set my ftp clients to always use binary.

Comment 3 by Raymond Camden posted on 6/4/2004 at 7:05 PM

I recently reinstalled my ftp client and it was set to the default.

Comment 4 by BlogFusion posted on 6/7/2004 at 3:32 PM

Yikes. I always hate (and love) those silly small errors. It's always such a pisser to fight with something for a long time only to realize you're saving the wrong file or something. Of course, it's also quite a nice feeling when you realized it was just a dumb error on your part and your code actually was solid!