GetFileBase64 read the MIME type from the S3 response header, which can be application/octet-stream for files uploaded without an explicit content type. Use file.GetMimeType() from the database instead, which stores the correct MIME type captured at upload time. This fixes evidence description failures when calling the OpenAI API with PDF files. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
4.5 KiB
4.5 KiB