Attachments with custom form service #824
Replies: 2 comments 7 replies
-
Pretty sure this might be covered for you. The problem with Apprise is that it does a lot, but it's very poorly documented. I think this might be one of those cases.
So the following would also work and rename the file: I'm not sure if this is the effect you're looking for? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is a change required by Apprise then in this case, or mailrise. I'll ping @YoRyan for this thoughts. |
Beta Was this translation helpful? Give feedback.
-
I'm thinking of using mailrise (which uses apprise underneath) to receive emailed PDF scans from my printer, with the destination being paperless-ngx.
The custom form service gets pretty close to doing this with the following URL:
forms://username:password@paperless/api/documents/post_document%2F
(I had to URL encode the trailing slash to
%2F
as it'd get stripped off otherwise, and the endpoint only works with the trailing slash)This API endpoint requires the file attachment to be in the multipart request named
document
, where the current version names attachments likefile01
,file02
... and doesn't allow any customisation.It'd be good to allow specifying the name of the multipart part in the URL.
The API endpoint also only takes in 1 attachment. Whilst it probably isn't an issue for my use-case - the printer will just send one attachment per email -- it'd be good to have an option to send several requests when several attachments are provided.
And, this would be needed when you can customise the part name, otherwise all attachments will be sent with that name. Paperless-ngx at least, will then just see the last attachment only.
Beta Was this translation helpful? Give feedback.
All reactions