Skip to content

Commit 529ddbf

Browse files
authored
Merge pull request #119 from appKom/fix-safari-jpeg-viewing
fix: correct file path formatting for downloaded attachments
2 parents a0abc04 + 7d22d17 commit 529ddbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/com/example/autobank/service/ReceiptService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class ReceiptService(
203203

204204
// Get files
205205
val attachments = attachmentService.getAttachmentsByReceiptId(receipt.receiptId)
206-
val files = attachments.map { attachment -> attachment.name.split(".")[1]+"."+blobService.downloadImage(attachment.name) }
206+
val files = attachments.map { attachment -> attachment.name.split(".")[1].replace(":", "/")+"."+blobService.downloadImage(attachment.name) }
207207

208208
return CompleteReceipt(
209209
receipt.receiptId,

0 commit comments

Comments
 (0)