Makes usage of https for pdfs

This commit is contained in:
Bryce
2023-08-04 09:41:22 -07:00
parent ea4ccf731e
commit e2b67bde91
7 changed files with 464 additions and 74 deletions

View File

@@ -315,7 +315,7 @@ invoice_dropzone = new Dropzone(\"#invoice\", {
id (get-in @(dc/transact conn [{:db/id tempid
:textract-invoice/textract-status "IN_PROGRESS"
:textract-invoice/pdf-url (str "http://" bucket-name ".s3-website-us-east-1.amazonaws.com/" s3-location)}])
:textract-invoice/pdf-url (str "https://" bucket-name "/" s3-location)}])
[:tempids tempid])]
(future (let [analysis (textract/start-expense-analysis {:document-location {:s3-object {:bucket (:data-bucket env) :name s3-location}}
:client-request-token (str id)})]