Audio/video uploads: current gaps in the upload flow
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with AndroidManifest.xml and FileUtils.uploadableFileFormats for A and C, then inspect FilePicker.kt and ImageFileLoader.kt for the picker gaps. The issue identifies upload screen audio handling and unsupported gallery formats as additional areas, with related work in #4352, #6825, and #7089. A first step is to implement A and C; done means supported Commons audio and video types can be shared to the app.
Written by the indexing model from the issue text.
Description
I tested Ogg audio files with the upload flow on main (prodDebug, Redmi A3 Pro, Android 14), and checked which other audio and video types the app accepts (AndroidManifest.xml, the file type checks, and Android share targets on the phone). This is to see what is missing for the goals of the Outreachy project T437071 (https://phabricator.wikimedia.org/T437071, see also #6955).
Related older issues: #4208 (audio uploads), #4 (video uploads).
Goal: detect supported audio and video files selected from the device
-
A. Ogg files shared as
application/oggare never offered to Commons. Xiaomi's File Manager shares.oggfiles with the typeapplication/ogg, but the app only registersaudio/ogg(AndroidManifest.xml) and only allowsaudio/ogginFileUtils.uploadableFileFormats. So "Upload to Commons" does not appear in the share menu. Log from the share menu:MiuiChooserActivity: Target intent: Intent { act=android.intent.action.SEND typ=application/ogg ... } -
B. The in-app pickers only show images. The gallery picker uses
image/*(FilePicker.kt) and the custom selector only queriesMediaStore.Images(ImageFileLoader.kt), so audio and video cannot be picked inside the app. -
C. Most formats that Commons accepts cannot be shared to the app. The share filter only has
image/*andaudio/ogg:Format Accepted by Commons Accepted by the app Ogg Vorbis (.ogg) yes only as audio/ogg(see A)Opus (.opus) yes (preferred) no FLAC / WAV yes no WebM video yes no Ogg Theora (.ogv) / MPEG yes no MP4 (phone camera) no no (Source: https://commons.wikimedia.org/wiki/Commons:File_types)
Goal: extend the existing upload flow
- Image-only checks run on audio files ("Image is too dark", "Please only upload pictures that you have taken by yourself") - #4352, PR open: #7079
- D. The upload screen treats audio as an image: the preview is blank, the "Edit Image" button is shown, and the texts say "image"/"picture" ("Problems found in image", "Do you still want to upload this picture?")
Goal: handle validation
- HEIC/HEIF photos were blocked by #6825 - #7089, PR open: #7100
- E. The gallery picker offers GIF, TIFF, WebP and XCF, but these are rejected with "Unsupported Format" after the user picks them.
I would like to work on A and C first, since they decide which files can enter the upload flow.
@RitikaPahwa4444 @nicolas-raoul @neeldoshii I would appreciate your feedback on this list, especially on whether A and C are good first steps.
- Dominant language
- Kotlin
- Stars
- 1.2k
- Forks
- 1.4k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 156
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from commons-app/apps-android-commons
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
commons-app/apps-android-commons#7486 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
commons-app/apps-android-commons#7464 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]: Media detail page crashes on file pages with unclosed [[Category: markupPossibly taken @dkrrish9 claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
commons-app/apps-android-commons#7423 · 7 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
[Bug]: WikiSite treats the /w/ script path as a language variant, producing a bogus "w" language codePossibly taken @shryssssss-maker claimed this 4 days ago. Opendebated
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
commons-app/apps-android-commons#7422 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
test: unit tests for WikiSite (sub-issue of #6630)Possibly taken @Seyamalam claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
commons-app/apps-android-commons#7419 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in commons-app/apps-android-commons
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
carlrobertoh/ProxyAI#1250 ·
-
Location search keeps showing stale "Open-Meteo can't find ..." message after clearing search queryOpenBug Needs review
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
breezy-weather/breezy-weather#3082 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
wangzan101/Mika#1033 ·
Maintainers usually reply within 1 day
-
area: ci area: local-media area: startup area: ui platform: bilibili platform: netease platform: youtube status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
cwuom/NeriPlayer#794 ·
Maintainers usually reply within 1 day
-
area:android area:ui bug priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
meraxes89/streamify-apk#449 ·
Maintainers usually reply within 1 day