Closed (fixed)
Project:
Pageroute
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2007 at 22:51 UTC
Updated:
19 Nov 2007 at 12:04 UTC
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
Comment #1
fagotry 1.x-dev, there the bug is already fixed.
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.