#681858 by chelman, provides support for cck file field types. Patch is slightly modified but seems to solve the problem correctly.