Hi,

I'm using the latest CVS version of flexinode with Drupal 4.7 RC3, and it looks like the file field type is broken, when I try to upload a file, I always end up with a form error message that the file field is missing.

I'm not sure what's the problem, but I suspect it has something to do with the new order of node hooks, it appears that flexinode_validate is executed before flexinode_execute, and as a result the form is validated before storing the uploaded file.

Moving the code that calls flexinode_execute to flexinode_form partially solves the issue, I'm now able to upload files, but if preview is used, the upload breaks again.

Attaching my modifications as a patch.

CommentFileSizeAuthor
flexinode.patch_3.txt1.24 KBAyman

Comments

Bèr Kessels’s picture

Status: Needs work » Closed (duplicate)

This is a duplicate of http://drupal.org/node/42762. Thanks for the work, though!

Ayman’s picture

Ah, couldn't find that, thanks for pointing out, will continue the discussion there.