Upload files in review form

After speaking with @asmecher via post.

I open a post because I have problems in the review form. Since I created a field to load files and we detected an error. It is a matter of putting it as a mandatory field and filling all the fields, it does not allow you to finish the form. The solution so far has been to leave as a non-obligatory field the upload of files.

I look forward to your help.

Hi @gardbeat,

Can you describe in detail how you created the file upload field?

Regards,
Alec Smecher
Public Knowledge Project Team

In the previous screen in the field called "Elemento I have included the html code.

Hi @gardbeat,

Ah, that’s the problem. To add a file upload control, you’ll need to do some PHP and Smarty coding; you can’t just paste an input field into a radio control’s HTML field.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

OK thank you very much. You could put an example that I must follow to be able to add a field to load / add files.

Hi @gardbeat,

Sorry, I’m afraid not – this is more than a trivial modification. If I were working on this, I’d start by searching the codebase for where the various types of review form elements are implemented ( REVIEW_FORM_ELEMENT_TYPE_…). You’d need to add another of these for an upload control.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks @asmecher,

I will investigate. If I deal with the solution, I will complete this post.