This feature attaches one file to an IM. The file is stored on the server when you send it, and the other person receives it from the server whenever they like, from the card that arrives. It works with NAPTIFY Server and NAPTIFY Client, and with NAPTIFY Remote on a phone (through the Client).
Sending
Sending: the file is stored on the server, the other person gets only a notice
Attachments work only in an IM with one user (not in channels or in windows with several recipients)
In NAPTIFY Client, attach with the Attach button above the message box, by drag and drop, or by pasting (Ctrl+V). Several files are sent one at a time, followed by the message text
The file is stored on the server when you send it. The other person receives only the message “File transfer: file name” and a card for receiving it
A recipient who does not support attachments receives only the line “File transfer: file name”
Folders and empty files (0 bytes) cannot be attached
Receiving
Receiving: from the server, the sender is not needed
The file is received from the server when the recipient presses Download. The sender’s permission is not needed, and the sender does not have to be online
Only the recipient can receive it. When the recipient is logged in on several devices (multi-login), the stored copy is kept until every device it was delivered to has received it. It is also deleted once any one device has received it and all devices have disconnected
When it has been received, Open opens it with the app that the OS associates with the file
If it fails, “Receive failed” is shown and Download can be pressed again. If the server no longer has the stored copy, “Unavailable: expired” is shown
If it is not received within 7 days, it is deleted from the server (the text of the IM stays)
JPEG, PNG, GIF, WebP and BMP images within the size limit are received automatically and shown inside the IM (up to 320×240, click to enlarge; an animated image shows its first frame only)
Other formats, such as SVG, HEIC, TIFF and ICO, appear as an ordinary file card
Files go to the download folder in the settings. If a file with the same name exists, it is saved as “name(1).extension” and never overwritten
The card stays in the IM history and can be opened again after a restart
Supported products
NAPTIFY Server
Accepts and stores attachments. The limit and how offline messages, links and guilds handle them are described below
NAPTIFY Client
Sends and receives attachments and shows images. The Attach button appears only when the server supports attachments
NAPTIFY Remote
Sends and receives from the phone through NAPTIFY Client on the PC. Attach from Take a photo, Choose a photo or Choose a file. Received files go to the download folder on the PC and are not saved on the phone
Settings and the size limit
Where
“Attachment maximum” in “Private messages” under “Messages” in “Sharing, chat and points” in the settings
Default
10 MiB (0 turns attachments off; the range is 0 to 4294967295 bytes)
Over the limit
NAPTIFY Client and NAPTIFY Remote refuse before sending, with “Size over the limit”
When unsupported or 0
NAPTIFY Client does not show the Attach button, and NAPTIFY Remote does not show its attach button
Offline messages, links, guilds and existing clients
Absent recipient: the attachment is kept together with the offline message and delivered at the next login, oldest first (when offline messages are on). Deleting the message deletes its attachment too. When offline messages are off, the sender gets the same “not delivered” notice as for an IM
Linked servers: attachments travel through links in the same form as an IM. When the recipient is on another server, that server holds the stored copy. Update all linked servers at the same time (earlier versions cannot link)
Guilds: attachments are carried only when both servers support them; otherwise only the message text arrives. The servers need not be updated at the same time
Existing clients such as Utatane: they cannot handle attachments and see only the line “File transfer: file name”