method

direct_upload_json

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: DirectUploadsController
direct_upload_json(blob) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/app/controllers/active_storage/direct_uploads_controller.rb, line 17
    def direct_upload_json(blob)
      blob.as_json(root: false, methods: :signed_id).merge(direct_upload: {
        url: blob.service_url_for_direct_upload,
        headers: blob.service_headers_for_direct_upload
      })
    end
Register or log in to add new notes.