Module Values.GetFileUploadURLResponseSource

The GetFileUploadURL operation generates and returns a temporary URL. You use the temporary URL to retrieve a file uploaded by a Worker as an answer to a FileUploadAnswer question for a HIT. The temporary URL is generated the instant the GetFileUploadURL operation is called, and is valid for 60 seconds. You can get a temporary file upload URL any time until the HIT is disposed. After the HIT is disposed, any uploaded files are deleted, and cannot be retrieved. Pending Deprecation on December 12, 2017. The Answer Specification structure will no longer support the FileUploadAnswer element to be used for the QuestionForm data structure. Instead, we recommend that Requesters who want to create HITs asking Workers to upload files to use Amazon S3.

Sourcetype nonrec t = {
  1. fileUploadURL : String_.t option;
    (*

    A temporary URL for the file that the Worker uploaded for the answer.

    *)
}
Sourcetype nonrec error = [
  1. | `RequestError of RequestError.t
  2. | `ServiceFault of ServiceFault.t
  3. | `Unknown_operation_error of string * string option
]
Sourceval make : ?fileUploadURL:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `RequestError of RequestError.t | `ServiceFault of ServiceFault.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `RequestError of RequestError.t | `ServiceFault of ServiceFault.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t