owncloud / android

:phone: The ownCloud Android App
GNU General Public License v2.0
3.82k stars 3.05k forks source link

[BUG] app appends .bin to uncommon files uploaded #3410

Open jsox79 opened 2 years ago

jsox79 commented 2 years ago

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

jesmrec commented 2 years ago

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!

jsox79 commented 2 years ago

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

jesmrec commented 2 years ago

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

MudssirAhmed commented 1 year ago

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

DocFaust commented 5 months ago

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.