lib/hello_sign/client.rb in hellosign-ruby-sdk-3.7.2 vs lib/hello_sign/client.rb in hellosign-ruby-sdk-3.7.3

- old
+ new

@@ -234,10 +234,10 @@ mime_type = MIMEfromIO file opts[:"file[#{index}]"] = Faraday::UploadIO.new(file, mime_type) elsif defined? ActionDispatch::Http::UploadedFile if file.is_a? ActionDispatch::Http::UploadedFile mime_type = MIMEfromIO file - opts[:"file[#{index}]"] = UploadIO.new(file.tempfile, mime_type) + opts[:"file[#{index}]"] = UploadIO.new(file.tempfile, mime_type, file.original_filename) end else raise HelloSign::Error::NotSupportedType.new "#{file.class} is not a supported. Must be a string or ActionDispatch::Http::UploadedFile" end end