Browse Source

Re-add get_file_io method (#2691)

* Re-add get_file_io method

* Update get_file
pull/2663/head^2
kosiakkatrina 3 months ago committed by GitHub
parent
commit
6d8479c488
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      app/services/storage/local_disk_service.rb

6
app/services/storage/local_disk_service.rb

@ -10,6 +10,12 @@ module Storage
def get_file(filename) def get_file(filename)
path = Rails.root.join("tmp/storage", filename) path = Rails.root.join("tmp/storage", filename)
File.open(path, "r").read
end
def get_file_io(filename)
path = Rails.root.join("tmp/storage", filename)
File.open(path, "r") File.open(path, "r")
end end

Loading…
Cancel
Save