answered
2018-11-10 04:11:36 +0200
Table of contents
Sending files per OBEX
(the original question)
Any filtering for "supported" file or MIME types seems to be done by an application (or a high-level application framework it uses, e.g. Qt), but not by the OBEX implementation (per obexd in bluez 4 and 5).
Hence complaints about specific apps limiting the types of files to share via Bluetooth should be filed a separate issues for these apps, IMO.
The awkward mini-filemanager in Settings -> Storage -> Mass memory -> [Top pulley] File manager seems to share any file via Bluetooth in recent SailfishOS versions, as Filecase (unmaintained, does not start up without patching since SailfishOS 2.2.0) definitely did on older SailfishOS versions.
You might file a feature request for your favorite file-manager to support unrestricted sharing of files via Bluetooth.
Sending multiple files via Bluetooth
As the OBEX (aka "IrDA compatibility") specification only supports sending one file at a time, selecting multiple files and sending them one-by-one also has to be implemented on application (or framework) level. No SailfishOS app provides this feature yet, AFAIK.
You might file a feature request for your favorite file-manager to support this, too.
Receiving arbitrary files
Edit / update (2019-10-03)
As this enduring situation is annoying, I created obexd-contentfilter-off, which automatically does what is described in the original answer (2018-11-10) below.
For easy installation (e.g., per Storeman), an RPM is available at OpenRepos.
As obexd-contentfilter-off obsoletes the original obexd-contentfilter-helper package, the need to check if the "dummy" obexd-contentfilter-helperapp script is still installed after a SailfishOS upgrade is also eliminated (compared to the manual deployment of the "dummy script" described in the original answer (2018-11-10) below).
Side note
While researching this issue in-depth, it became apparent that Jolla's position is understandable: It would be hard to sell SailfishOS licenses to companies and governments, if the Bluetooth software stack behaves non-compliant to the Bluetooth OBEX specifications.
Still I wish Jolla will enable users to switch the OBEX filter off at the GUI, some day.
Original answer (2018-11-10)
Oh, I completely forgot, that this was answered by @hmallat in a comment to my very first question on TJC (and also in his comment to another question).
Applying these five commands prevents any filtering for Bluetooth file transfers:
devel-su # Become root
cd /usr/libexec
mv -v obexd-contentfilter-helperapp obexd-contentfilter-helperapp.orig # Backup & delete by renaming
echo -e "#!/bin/sh\n\nexit 0" > obexd-contentfilter-helperapp # Create a dummy helperapp, always returning O.K.
chmod +x obexd-contentfilter-helperapp # Make it executable
Still, IMO Jolla should stop filtering for supported file types when receiving via BT file transfer in SailfishOS per default or offer a setting to disable this filter.
The current behavior ("Oops, uploading did not work!" on the sender's side) appears to be a non-functional Bluetooth file transfer (when trying to transfer an "unsupported" kind of file), because there is no indication why the BT file transfer went wrong!
Side notes
- A functional (i.e., filtering) obexd-contentfilter-helperapp file may be reinstalled when upgrading SailfishOS.
Repeat above commands, then. - Mind that Bluetooth file transfers may still fail for other reasons, most often due to Bluez instabilities (especially on Jolla 1 phones, still provided with Bluez4 by default).
This is important. A deal breaker if not fixed, imo
Glenn9K ( 2013-12-25 20:36:56 +0200 )editYes, definitely this is important!
LaruX ( 2013-12-26 14:53:49 +0200 )editNot high priority at the moment in my opinion. But something I hope to have in the future. Enjoyed it a lot that I could send and receive everything with Nokia N9. Pully menu with "Send file" is a very good idea and would enrich the idea of the Pully menu a lot.
molan ( 2014-01-07 19:31:36 +0200 )editIt would be nice to have it in File Browser.
SaimenSays ( 2014-03-01 21:09:02 +0200 )editIt should be a have to be in the MediaPlayer analog to Galerie
michaelmischke ( 2014-04-19 00:05:51 +0200 )edit