Signal-iOS icon indicating copy to clipboard operation
Signal-iOS copied to clipboard

Issue with mimetype when sending files from other apps

Open gagelarsen opened this issue 1 year ago • 12 comments

  • [x] I have searched open and closed issues for duplicates
  • [x] I am submitting a bug report for existing functionality that does not work as intended
  • [x] This isn't a feature request or a discussion topic

Bug description

When sending files from another app (BGStats) to other signal users it seems that they are unable to open the sent file with the correct app. This seems to be caused because the attachments mime type is not being set correctly by signal. I have tested this by sending a file from BGStats to another user using the basic iOS messaging app and they can open the file just fine that way. This also doesn't seem to be a problem for android users. They can send BGStat files using signal with now problems. Rather than seeing the file as an *.bgstats file it sees it as a macbinary archive.

Steps to reproduce

  • Share a file from the app "BGStats" - (I presume other apps using similar file types, JSON, would do the same thing.)
  • Select Signal as the app you want to use to share
  • Select your group or person you want to send it to.

Actual result: When they select the file and hit the share button the BGStats app does not appear as one of the applicable apps to use.

Expected result: After selecting share you should be able to select BGStats in the applicable app section.

Screenshots

When shared via signal:

When shared via text:

Device info

Device: iPhone 15 Pro Max

iOS version: 18.2.1

Signal version: 7.42

Link to debug log

https://debuglogs.org/ios/7.41.3/beec624aa51e0dddca7fe2e6b2b7456812aea064d1897ca89b3d98f4736b970a.zip

gagelarsen avatar Jan 17 '25 15:01 gagelarsen

I’m also having this issue. +1

swainn avatar Mar 06 '25 07:03 swainn

Hey @swainn and @gagelarsen!

This sounds like #5876. I made a PR that would address that issue! Could you send the BGStats file here so that I can use it for testing as well?

MarlowBrown avatar Mar 10 '25 00:03 MarlowBrown

The latest update on the BGStats side has solved the issue for me, using the app on the Iphone.

dsvejda avatar Apr 15 '25 15:04 dsvejda

I have not found that to be the case. I am using the latest version of both apps, and this is still a problem.

gagelarsen avatar Apr 23 '25 21:04 gagelarsen

You are correct. I must have been overenthousiastic when writing my last remark. Importing the play file still does not work. Sorry.

However,- the new option in bgstats to „share via QR code“ does work in combination with Signal. I have not noticed any drawbacks with that way of working. So functionally speaking, from my perspective, this is a solution. I would be interested to hear what your findings are in this respect.

I just want to add: thanks for creating this perfectly documented bug report. I was happy to find it, exactly the right approach.

dsvejda avatar Apr 23 '25 22:04 dsvejda

I am experiencing the same issue with my own app when sharing a custom file type: If I share one of these files with the Signal app and then try to open it again from the chat it works perfectly fine, but when my chat partner sends me the same file back I can't open it anymore. I also suspect that there might be a mimetype issue.

(I'm having the issue on an Android device though)

flauschtrud avatar May 23 '25 14:05 flauschtrud

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 22 '25 12:08 github-actions[bot]

Keep open

On Fri, Aug 22, 2025 at 7:26 AM github-actions[bot] < @.***> wrote:

github-actions[bot] left a comment (signalapp/Signal-iOS#5938) https://github.com/signalapp/Signal-iOS/issues/5938#issuecomment-3214196084

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-iOS/issues/5938#issuecomment-3214196084, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI3H5DJ7ICHGR55VT5XEAL33O4EBBAVCNFSM6AAAAABVMF5OWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMJUGE4TMMBYGQ . You are receiving this because you commented.Message ID: @.***>

MarlowBrown avatar Aug 22 '25 14:08 MarlowBrown

This is still an issue for me.

swainn avatar Aug 22 '25 16:08 swainn

Still happening


Gage Larsen @.*** (435)-621-3396

On Fri, Aug 22, 2025 at 10:39 AM Nathan Swain @.***> wrote:

swainn left a comment (signalapp/Signal-iOS#5938) https://github.com/signalapp/Signal-iOS/issues/5938#issuecomment-3214973709

This is still an issue for me.

— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-iOS/issues/5938#issuecomment-3214973709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VGZ2M7OANIP7ZSGKV6SD3O5BVHAVCNFSM6AAAAABVMF5OWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMJUHE3TGNZQHE . You are receiving this because you were mentioned.Message ID: @.***>

gagelarsen avatar Aug 22 '25 20:08 gagelarsen

@gagelarsen @swainn are you still seeing this issue? We made fairly substantial changes to attachment handling over the past few months, and I’m curious if it’s stopped occurring for you.

max-signal avatar Feb 26 '26 19:02 max-signal

I have updated both signal and bg stats to the latest versions and this still happens.

On Thu, Feb 26, 2026 at 12:08 PM Max Radermacher @.***> wrote:

max-signal left a comment (signalapp/Signal-iOS#5938) https://github.com/signalapp/Signal-iOS/issues/5938#issuecomment-3968634070

@gagelarsen https://github.com/gagelarsen @swainn https://github.com/swainn are you still seeing this issue? We made fairly substantial changes to attachment handling over the past few months, and I’m curious if it’s stopped occurring for you.

— Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-iOS/issues/5938#issuecomment-3968634070, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VGZZBNHGNQTPBDO2QCBL4N5ADXAVCNFSM6AAAAACWA5IDWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSNRYGYZTIMBXGA . You are receiving this because you were mentioned.Message ID: @.***>

--

Gage Larsen @.*** (435)-621-3396

gagelarsen avatar Feb 26 '26 22:02 gagelarsen