Menu

#83 Support for inline images send via file transfer

closed-duplicate
nobody
None
Pidgin
5
2015-02-16
2015-02-06
No

If someone pastes an image into the input field in Lync the image is just transferred using a file transfer. Currently Pidgin asks if you want to accept it and saves the file. But in Lync the image is displayed inline in the conversation. The XML for the file request looks like this:

Content-Type: application/ms-filetransfer+xml
Content-Transfer-Encoding: quoted-printable
Content-ID: <1c0954f94c2f4942a392d4cc3c3f5fc8@8b4a565b77a247b1ac0a41583e2cfca2>
Content-Disposition: render; handling=optional

<request xmlns=3D"http://schemas.microsoft.com/rtc/2009/05/filetransfer" =
requestId=3D"27">
<publishFile>
<fileInfo embedded=3D"true">
<id>{250FF7A0-2DE0-4B8E-A4D9-C153110F171D}</id>
<name>L_659E.tmp.PNG</name>
<size>363</size>
</fileInfo>
</publishFile>
</request>

It would be nice if this type of inline image could be supported. It seems the plugin would just have to accept the file transfer automatically (or not make it show up in Piding as a file transfer at all and handle it by itself) and then add the image to the conversation. The embedded="true" seems to be the obvious criterion for inline images, maybe the Content-Dispostion header, if it looks different for normal file transfers.

Discussion

  • Stefan Becker

    Stefan Becker - 2015-02-06
    • status: open --> closed-duplicate
     
  • Stefan Becker

    Stefan Becker - 2015-02-06

    Closing as duplicate of [feature-requests:#75].

    Please provide all information and the required --debug log from SIPE there. Thanks.

    (SF markdown seems to have problems to recognize that particular artifact link. URL: https://sourceforge.net/p/sipe/feature-requests/75/]

     

    Last edit: Stefan Becker 2015-02-06
  • Christoph Hohmann

    I thought about adding it to the other feature request. But that does not seem to be a file transfer. So i guess this is a different type of inline image. It is just using the already existing file transfer, probably just with some additional information in the header or XML.

    File transfer is already implemented, right? So you just have to check the XML for the inline information, do the transfer without telling Pidgin about it and add the image to the conversation.

     

    Last edit: Christoph Hohmann 2015-02-06

Log in to post a comment.