Here's my Controller
class CsvController < ApplicationController
  def read_csv
    CsvWorker.perform_async(params[:file])
  end
end
Here's my Worker
class CsvWorker
  include Sidekiq::Worker
  def perform(file)
    csv_file = SmarterCSV.process(file)
  end
end
I didn't get complete file object in CsvWorker, I only get this file object as string
"#<ActionDispatch::Http::UploadedFile:0x00007fa6b87ea0c0>"
I want to access this file in CsvWorker so i can read and manage the CSV file in the background.