[BUG] app appends .bin to uncommon files uploaded
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 4.2k
- Forks
- 3.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 7
Description
How to reproduce
- upload an uncommon file from any android app to owncloud except owncloud. using the share function of most apps.
Expected Behavior
- file is uploaded to owncloud retaining its extension
Actual Behavior
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Android share/upload flow described in the reproduction steps and compare its handling with the linked Nextcloud Android commit. Reproduce by sharing an uncommon file from another Android app, then verify that the uploaded file retains its original extension rather than receiving .bin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100