app/controllers/uploads_controller.rb
#
# Determines if the uploaded file can be retrieved from the blockchain and if so, retrieves it.
#
Determines if the uploaded file can be retrieved from the blockchain and if so, retrieves it.
Determines if the uploaded file can be retrieved from the blockchain and if so retrieves it .
def retrieve_file
    if @upload.public? && @upload.file_type.public? && @upload.address.present? && @upload.success?
      BlockchainRetrieveJob.perform_later(@upload.id)
    end
  end
def retrieve_file if @upload . public? && @upload . file_type . public? && @upload . address . present? && @upload . success? BlockchainRetrieveJob . perform_later ( @upload . id ) end end
Determines if the uploaded file can be retrieved from the blockchain and if so, retrieves it.
Determines if the uploaded file can be retrieved from the blockchain and if so retrieves it .