upload to member upload folder…
Posted: 26 September 2007 01:50 PM   [ Ignore ]
Newbie
Rank
Total Posts:  16
Joined  2006-09-13

Hello.

I’d like to use the file upload feature and specify the upload folder with a variable.  Specifically, I want to have a user upload images and those images be placed into folders designated to their member group.

I’ve tried to use {group_id} and {member_group} like so:

{exp:freeform:form form_name="new_issues" required="request_project|request_type|request_timeline|request_description" notify="myname@mac.com" template="default_template" return="templategroup/template/thank_you/{segment_3}" file_upload="{member_group}" send_attachment="no" send_user_attachment="no"}

Unfortunately, this isn’t working for me, so I tried an SQL query to get the name of the member group.  The SQL query fails anywhere within the form including the file_upload parameter.

Can anyone share their thoughts as a solution to designate an upload folder based on the member group?

Thank you for your thoughts.

Profile
 
 
Posted: 12 January 2008 05:56 AM   [ Ignore ]   [ # 1 ]
Member
Avatar
RankRankRank
Total Posts:  73
Joined  2006-05-10

Hi there,

I think this can be done but if you are using {member_group} as the file_upload parameter then you will need to make sure that you have a file upload destination called the same name as your member group. That should hopefully do it for you?

Hope that helps.

Best wishes,

Mark

Profile