Method: ActiveStorage::DirectUploadsController#create

Defined in:
activestorage/app/controllers/active_storage/direct_uploads_controller.rb

#createObject



7
8
9
10
# File 'activestorage/app/controllers/active_storage/direct_uploads_controller.rb', line 7

def create
  blob = ActiveStorage::Blob.create_before_direct_upload!(**blob_args)
  render json: direct_upload_json(blob)
end