sounds like you set the file name to [filename] and not [FileName] php is case sensitive.
also in your initial file, you had been using the Form bindings for the file columns, and not the Server File Name bindings that you should be using.
in the insert record behavior, make sure to use the Server File Name bindings for the file columns.