Skip to content

Commit

Permalink
don't use the S3 URL to name the file
Browse files Browse the repository at this point in the history
  • Loading branch information
cziaarm committed Oct 15, 2024
1 parent 42cd705 commit 3c8cc9e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ module Works
module UpdaterDecorator
def attach_attributes(external_file_url, filename = nil)
current_file.content = StringIO.new('-') # anything but blank
current_file.original_name = filename
# filename will be the url as that is what ahppens in self.call
STDERR.puts "We will call this file: #{@file_set.label}... or maybe #{@file_set.file_name}.... or even #{file_set.label}"
current_file.original_name = @file_set.label
# current_file.original_name = filename
current_file.mime_type = "message/external-body; access-type=URL; URL=\"#{external_file_url}\""
end
end
Expand Down

0 comments on commit 3c8cc9e

Please sign in to comment.