noosfero | Removes old image when form is updated with new. (!1318)

Rodrigo Souto gitlab at mg.gitlab.com
Thu Sep 28 10:15:05 BRT 2017


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

>      end
>  
>      form_gallery.images << form_image
> +    old_form_image = form.image

What if we do not change the image? Won't this just remove and recreate the uploaded file on every save?

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1318#note_41778123
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/20170928/8b324908/attachment.html>


More information about the Noosfero-dev mailing list