Skip to content

Feature Request: Support for custom form fields in remoteUpload #18

@Heisenberg691

Description

@Heisenberg691

When using the remoteUpload server side export with the 'blob' dataType, any parameters passed in the options.fields table are ignored. This makes it impossible to use services that require additional form fields for authentication.

  local cloud_name = "cloud_name"
  local upload_preset = "unsigned_preset"
  local upload_url = "https://api.cloudinary.com/v1_1/" .. cloud_name .. "/image/upload"

  exports.screencapture:remoteUpload(source, upload_url, {
      encoding = "webp",
      formField = "file",
      filename = "screenshot.webp",
      fields = {
          upload_preset = upload_preset,
      },
      headers = {}
  }, function(res)
  end, "blob") 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions