-
A SupplicerInvoiceFileConnection has a FileId and a Name. A VoucherFileConnection does not have a Name-property. When downloading the file directly in Fortnox web app it obviously has a proper file name. I don't see any method in the ArchiveConnector either to get the information of a file. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
There is no Ref: https://apps.fortnox.se/apidocs#tag/VoucherFileConnections |
Beta Was this translation helpful? Give feedback.
-
I got an answer from Fortnox now that the filename is contained within the content-disposition-header when using the Inbox-API. It's probably the same for the Archive-API. But then when using this SDK, I only get a byte array for the file content. Regardless, it seems like a mistake that SupplierInvoiceFileConnection has a name and VoucherFileConnection does not. Even if I theoretically could get the name by downloading the file through the SDK, that would mean that I would have to download all the files just to get a list of their names. |
Beta Was this translation helpful? Give feedback.
-
Fortnox has now added the Name property. See PR #297. |
Beta Was this translation helpful? Give feedback.
Fortnox has now added the Name property. See PR #297.