Class: Ecoportal::API::GraphQL::Query::FileUploadSignature

Inherits:
Logic::Query
  • Object
show all
Defined in:
lib/ecoportal/api/graphql/query/file_upload_signature.rb

Overview

Fetches S3 pre-signed upload credentials via GraphQL. These credentials are used to upload a file directly to S3. After the S3 upload, register the file with the EcoPortal backend using FileUpload::Client#register_and_poll to obtain a fileContainerId.

Usage (via FileUpload::Client — do not call this directly): api.file_upload.upload('/path/to/file.pdf')

Defined Under Namespace

Classes: SignatureResponse

Instance Method Summary collapse

Instance Method Details

#pathObject



15
16
17
# File 'lib/ecoportal/api/graphql/query/file_upload_signature.rb', line 15

def path
  %w[currentOrganization fileUploadSignature]
end

#response_classObject



19
20
21
# File 'lib/ecoportal/api/graphql/query/file_upload_signature.rb', line 19

def response_class
  SignatureResponse
end