Api::Fileupload
Library for handling file uploads with json only apis.
Installation
gem 'api-fileupload'
And then execute:
$ bundle
Or install it yourself as:
$ gem install api-fileupload
Usage
Create a controller that includes Api::Fileupload::Controller module and add create and destroy routes for the controller.
In controllers that need those uploaded files, add
include Api::Fileupload::UploadedFiles
and retrieve uploaded files by using
uploaded_file({id: <uploaded_file_id>})