Hi, I am using the Files API via HTTP Request. I am able to upload files to S3 bucket "Upsert" endpoint they mention in the official documentation:
Creates or updates a file using the key parameter as unique identifier. Updating a file will erase the existing content of the file. Upload the file content by sending it in a PUT request to the uploadUrl returned in the response.
Once uploaded I retrieve the file with the "List Files" Endpoint for my bot and I can see the file is uploaded correctly. However, I cannot see it in the KB of my bot.
The json response of the List Files endpoint:
{'id': 'file_01J3CEJQ0BE53A3EKFHTZDV4AM',
'botId': '1d074a47-43f9-40da-a042-4c755ab616e',
'key': 'file1.txt',
'url': 'https://files.botpress.cloud/2024/07/22/06/20240722062304-2S2TXCQX.txt',
'size': 39,
'contentType': 'text/plain; charset=utf-8',
'tags': {},
'createdAt': '2024-07-22T05:28:10.498Z',
'updatedAt': '2024-07-22T06:23:04.397Z',
'accessPolicies': ['public_content'],
'index': True,
'status': 'indexing_completed'},