I have followed the tutorial here to user Usernode, Nodefamily and Pageroute to create extended user profiles.

Everything was working great until I tried to add a CCK image field to my User Profile content type.

If I edited the content type directly (e.g. /node/edit/164) I was able to upload the picture. But if I edited within my Pageroute, the picture upload would silently fail.

After an absurd amount of digging around, I realized the problem was that the pageroute form did not have enctype="multipart/form-data" set.

For my own installation I have added the following to the pageroute_page_form method

// Set form parameters so we can accept file uploads.
$form['#attributes'] = array("enctype" => "multipart/form-data");

but I'm less than sure that this is actually the "proper" solution to this issue.

Comments

fago’s picture

Status: Active » Fixed

try 1.x-dev, there the bug is already fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.