Closed Bug 811258 Opened 8 years ago Closed 8 years ago

[Bluetooth] can share files, but always shows "file transfer failed"

Categories

(Firefox OS Graveyard :: Gaia::Bluetooth, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 811615

People

(Reporter: dkuo, Assigned: iliu)

References

Details

When using Gallery and Music, users can share files to paired devices, but always shows "Bluetooth file transfer failed"
Related to bug #809781
Assignee: dkuo → iliu
The flow of how we share files via bluetooth in gaia:

- Gallery or Music (File) -web activity-> Bluetooth app (File) -> mozBluetooth (File)

But currently result in:

- Gallery or Music (File) -web activity-> Bluetooth app (Blob) -> mozBluetooth (Blob)

Looks like after passing by web activities, a File object will become a Blob object,
but mozBluetooth api needs File, not Blob object because it needs File.name and File.size
Blobs doesn't contain .name and .size

So that's why it always shows failed for current gaia.
Depends on: 811615
(In reply to Dominic Kuo [:dkuo] from comment #2)
> The flow of how we share files via bluetooth in gaia:
> 
> - Gallery or Music (File) -web activity-> Bluetooth app (File) ->
> mozBluetooth (File)
> 
> But currently result in:
> 
> - Gallery or Music (File) -web activity-> Bluetooth app (Blob) ->
> mozBluetooth (Blob)
> 
> Looks like after passing by web activities, a File object will become a Blob
> object,
> but mozBluetooth api needs File, not Blob object because it needs File.name
> and File.size
> Blobs doesn't contain .name and .size
> 

One correction, Blob does have .size, so the only missing property is .name for mozBluetooth api.

> So that's why it always shows failed for current gaia.
Component: Gaia → Gaia::System::Bluetooth
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 811615
You need to log in before you can comment on or make changes to this bug.