Sha256: 7d2a3d1e1a3c435a073c487bca8b46a77702cdf71a7fc13e87da39aa5bcd1206
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
module Scrivito class BlobsController < WebserviceController def upload_permission @permission = CmsRestApi.task_unaware_request(:get, 'blobs/upload_permission') end def activate_upload activate_params = params.slice(:upload, :obj_id, :filename, :content_type) @blob = CmsRestApi.task_unaware_request(:put, 'blobs/activate_upload', activate_params) render :blob end def copy blob_id = params.fetch(:id_to_copy) copy_params = params.slice(:destination_obj_id, :filename, :content_type) @blob = CmsRestApi.task_unaware_request(:put, "blobs/#{blob_id}/copy", copy_params) render :blob end end end
Version data entries
6 entries across 6 versions & 1 rubygems