Class: Shrine::Plugins::DirectUpload::App

Inherits:
Roda
  • Object
show all
Defined in:
lib/shrine/plugins/direct_upload.rb

Overview

Routes incoming requests. It first asserts that the storage is existent and allowed, then the filesize isn’t too large. Afterwards it proceeds with the file upload and returns the uploaded file as JSON.