Thanks for your awesome work on this extension. I came across a strange little issue pertaining to File Custom Fields causing the data object to return NULL.
Setup
- Custom Fields containing: Text field, File upload field
- Profile matching the above
Steps to reproduce
- Create the profile and custom fields
- Setup RemoteForm and add the RemoteForm to a page (in my situation it's a Drupal page)
- Add the text information, and choose an image file
- Click Submit
- Receive the error message
That entity is not allowed: .
Issue
Digging deeper it would seem that the issue happens in CRM/Remoteform/Page/RemoteForm.php when the data object is being parsed in json_decode. The data object returns NULL and then explodes in the sanitizeInput call. Ironically, I can use the same Profile Form and exclude the uploaded file and the data is being processed properly.
Note: For what it's worth this is injecting into a CiviCase but I don't think that would effect things
Thanks for your awesome work on this extension. I came across a strange little issue pertaining to File Custom Fields causing the data object to return NULL.
Setup
Steps to reproduce
That entity is not allowed: .Issue
Digging deeper it would seem that the issue happens in
CRM/Remoteform/Page/RemoteForm.phpwhen the data object is being parsed in json_decode. The data object returns NULL and then explodes in thesanitizeInputcall. Ironically, I can use the same Profile Form and exclude the uploaded file and the data is being processed properly.Note: For what it's worth this is injecting into a CiviCase but I don't think that would effect things