diff --git a/app/commands/concerns/decidim/ideas/image_methods.rb b/app/commands/concerns/decidim/ideas/image_methods.rb index c3ed319..1c3f476 100644 --- a/app/commands/concerns/decidim/ideas/image_methods.rb +++ b/app/commands/concerns/decidim/ideas/image_methods.rb @@ -12,9 +12,7 @@ def build_image attached_to: @attached_to, # Keep first title: { I18n.locale.to_s => form_image["title"] }, file: form_image["file"], - weight: 0, - content_type: content_type_for(form_image), - file_size: form_image.bytesize + weight: 0 ) end diff --git a/app/views/decidim/ideas/ideas/_form.html.erb b/app/views/decidim/ideas/ideas/_form.html.erb index 96e848b..ddb4bcd 100644 --- a/app/views/decidim/ideas/ideas/_form.html.erb +++ b/app/views/decidim/ideas/ideas/_form.html.erb @@ -188,18 +188,6 @@ help_i18n_scope: "decidim.forms.file_help.image", extension_allowlist: Decidim::OrganizationSettings.for(current_organization).upload_allowed_file_extensions_image %> - -