<div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div>I believe I have solved the 'bug' of this ticket: <a href="http://bugs.sugarlabs.org/ticket/2473">http://bugs.sugarlabs.org/ticket/2473</a><br></div>
<br>The problem is that when sending files, only the title, description and mime type are preserved. ThisĀ is due to telepathy (Channel.Type.FileTransfer), as it does not support other properties.<br></div>There is a fix for telepathy (Channel.Interface.FileTransfer.Metadata), but it's implemented in a different version of telepathy.<br>
<br></div>I have solved this bug by packing all the metadata and sending it as the description. When the file is saved on the receiving machine, the metadata is unpacked.<br></div>This works without a problem. But a problem arises with backward compatibility.<br>
</div>If a user with this 'bug fix' sends a file to a user without it, the receiving user will have JSON formatted data as the description of the file.<br><br></div><div>I'm not sure if this will be accepted, due to the last part. Yet I have not found way to fix it.<br>
</div><div>Here are the code edits: <a href="https://github.com/edudev/sugar/compare/sugarlabs:master...edudev:ticket2473">https://github.com/edudev/sugar/compare/sugarlabs:master...edudev:ticket2473</a><br><br></div><div>
Emil Dudev<br></div></div>