Skip to content

Commit

Permalink
updated readme naming
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiawulee committed Apr 26, 2024
1 parent 2e0200a commit 56159c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/readme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def remove_old_readme
end

def upload_readme(readme_file_param)
extension = File.extname(readme_file_param.original_filename)
readme_name = "README#{extension}"
readme_name = readme_file_param.original_filename
size = readme_file_param.size
work.s3_query_service.upload_file(io: readme_file_param.to_io, filename: readme_name, size:)
end
Expand Down

0 comments on commit 56159c8

Please sign in to comment.