Skip to content

Commit

Permalink
remove debug, using @file_set.label for file.file_name when doing the…
Browse files Browse the repository at this point in the history
… external file attaching thing
  • Loading branch information
cziaarm committed Oct 16, 2024
1 parent a247794 commit 44faaa5
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ module Works
module UpdaterDecorator
def attach_attributes(external_file_url, filename = nil)
current_file.content = StringIO.new('-') # anything but blank
# filename will be the url as that is what ahppens in self.call
STDERR.puts "##### We will call this file"
STDERR.puts "##### file_set: #{@file_set}"
STDERR.puts "##### label #{@file_set.label}"
STDERR.puts "##### label without the @ #{file_set.label}"
# filename will be the url.... but we will use file_set.label
# becuase making the filename the url of an s3 key is problematic for humans
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 44faaa5

Please sign in to comment.