android icon indicating copy to clipboard operation
android copied to clipboard

[BUG] app appends .bin to uncommon files uploaded

Open jsox79 opened this issue 3 years ago • 5 comments

How to reproduce

  1. upload an uncommon file from any android app to owncloud except owncloud. using the share function of most apps.

Expected Behavior

  1. file is uploaded to owncloud retaining its extension

Actual Behavior

  1. file is appended with .bin extension

Configuration Info

Latest owncloud extension defined in both alias and mapping in config/ i can upload from any platform except android. i can also upload the file from within owncloud app fine. but if i use any android filesharing app or the app that created the file itself it gets the modified extension. it does not happen locally.

Can this problem be reproduced with the official owncloud server? (url: https://demo.owncloud.org, user: test, password: test) YES

### Environment data Android version: 11 Device model: 1+ hd1925 Stock or customized system: Stock Android 11 ownCloud app version: latest availabe via playstore as of 10/11/21 ownCloud server version: latest available as of 10/11/21

nextcloud had similar problem and solved by using this code https://github.com/nextcloud/android/commit/d4aaebe5acb84c1178706aca379e2d4ca97d10bc

jsox79 avatar Oct 11 '21 17:10 jsox79

I can reproduce it... let's check if this is the expected behaviour or not. By opening files without extension with other apps, they are marked as "bin".

Thanks a lot for reporting!

jesmrec avatar Oct 14 '21 07:10 jesmrec

Any update on this? Seriously impeding my ability to use with my phone as well as others.

jsox79 avatar Oct 17 '21 03:10 jsox79

Not for the moment, team is busy with other issues. You know, if you are brave to send a contribution, you are welcome!!

We will set also de "Contributions" label, in case someone in the community wants to work on this

jesmrec avatar Oct 25 '21 09:10 jesmrec

@jsox79 I try to reproduce this issue, But I'm not able to reproduce it. Can you provide some more context or some recording?

MudssirAhmed avatar Aug 13 '23 05:08 MudssirAhmed

I see, that this issue is some years old, but I am also suffering from this. We are sharing chordpro files (.cho) from SongbookPro on Android tablets. If someone is sharing a file like this it is renamed to .cho.bin and we have to rename it in order to import the files again. If I do the same with another Cloud Provider like Onedrive, the name stays .cho and can be imported. It would be great, if there was a workaround.

DocFaust avatar Apr 14 '24 06:04 DocFaust