CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Problem using a file custom field on an event registration
Pages: [1]

Author Topic: Problem using a file custom field on an event registration  (Read 1128 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Problem using a file custom field on an event registration
July 22, 2008, 01:02:01 pm
Hi,

I'm trying to let the registrants to an event upload an image (to publish a nicer list of participants.)

It doesn't work, and it seems like I've bumped into this issue :
http://issues.civicrm.org/jira/browse/CRM-1722

Could you clarify when it happens ? only on wizards (multi steps), or even if using simple profiles ? or only if the user isn't authenticated ?

I'm not sure I understand what triggers the problem, nor how to work around.

I'm looking for a workaround, one idea I had was to plug in the confirmation page a link to the participant contact, with a a profile that only provides the file attribute I want them to upload the image into ?

Otherwise, I'd go for dirty _FILES kind of hack in the confirmation php, but as the id of the participant isn't yet created, I'm feeling that's going to be a really dirty road, I'd rather avoid.

Any suggestion more that welcome !

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problem using a file custom field on an event registration
July 22, 2008, 10:05:57 pm

since i've been doing a fair amount of work on file attachments, i'm taking another look at this and see what needs to be done to make this happen

i'll have an update over the next 24 hours or so

lobo

p.s> send email to contacts now allows attachments :)

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Problem using a file custom field on an event registration
July 22, 2008, 10:46:43 pm
Great and magic!

Thanks

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problem using a file custom field on an event registration
July 23, 2008, 09:15:45 pm
Contribution pages now allow custom file uploads in trunk. I've just updated sandbox and you should be able to test the changes there. We suppress custom field(s) of type 'file' in the confirm/thank you/receipt (since it opens up a few permissioning questions)

Event registration has also been fixed and modified. You might want to give it a whirl and see if we need to make any changes.

I've also made some significant sweeping changes to all our file upload code. So i potentially have broken a few things. please let me know, if so on this forum topic :)

thanx

lobo
« Last Edit: July 24, 2008, 01:08:03 am by Donald Lobo »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Problem using a file custom field on an event registration

This forum was archived on 2017-11-26.