Method: Cnvrg::Datafiles#upload_url

Defined in:
lib/cnvrg/datafiles.rb

#upload_url(file_path) ⇒ Object



498
499
500
501
502
503
504
505
506
# File 'lib/cnvrg/datafiles.rb', line 498

def upload_url(file_path)
  response = Cnvrg::API.request(@base_resource + "upload_url", 'POST', {file_s3_path: file_path})
  if Cnvrg::CLI.is_response_success(response, false)
    return response
  else
    return nil
  end

end