noosfero | Add a upload file field, on the form of the CustomForm plugin. (!1302)

Rodrigo Souto gitlab at mg.gitlab.com
Mon Aug 28 17:31:44 BRT 2017


Rodrigo Souto commented on a discussion on plugins/custom_forms/controllers/custom_forms_plugin_myprofile_controller.rb:

>  
>    def create
>      params[:form][:profile_id] = profile.id
> +    uploaded_data = params[:form].delete(:image)
>      @form = CustomFormsPlugin::Form.new(params[:form])
> -
> +    @form.build_article(

Yeah

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1302#note_38707343
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170828/4e27ab76/attachment-0001.html>


More information about the Noosfero-dev mailing list