[31580] Stringify file name

https://community.openproject.com/wp/31580
pull/7841/head
Oliver Günther 5 years ago
parent 2efbe70f49
commit 3adce4d7c8
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      lib/api/v3/attachments/attachments_by_container_api.rb

@ -77,7 +77,7 @@ module API
def build_and_attach(metadata, file)
uploaded_file = OpenProject::Files.build_uploaded_file file[:tempfile],
file[:type],
file_name: metadata.file_name
file_name: metadata.file_name.to_s
service = AddAttachmentService.new(container, author: current_user)

Loading…
Cancel
Save