Function upload_file_handler

Source
pub async fn upload_file_handler(
    configuration: &Configuration,
    tr_dataset: &str,
    upload_file_req_payload: UploadFileReqPayload,
) -> Result<UploadFileResult, Error<UploadFileHandlerError>>
Expand description

Upload a file to S3 attached to the server. The file will be converted to HTML with tika and chunked algorithmically, images will be OCR’ed with tesseract. The resulting chunks will be indexed and searchable. Optionally, you can only upload the file and manually create chunks associated to the file after. See docs.trieve.ai and/or contact us for more details and tips. Auth’ed user must be an admin or owner of the dataset’s organization to upload a file.