Skip to content

[stable35] fix(files): upload files with empty mime type - #65927

Open
backportbot[bot] wants to merge 3 commits into
stable35from
backport/65819/stable35
Open

backportbot[bot] wants to merge 3 commits into
stable35from
backport/65819/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 26, 2026

Copy link
Copy Markdown

Backport of PR #65819

The drop handler discarded files whose MIME type arrives empty
from the browser (common in Chromium for unknown extensions),
silently skipping them from the upload queue. Keep files with an
unknown type and let the server detect it on upload (content
sniffing + extension map). Directories are still skipped with a
warning.

Assisted-by: opencode:MiMo-V2.6-Flash
Signed-off-by: Braux Martinez <martinezjb@hitss.com>
- Distinguish empty directories from files with unknown mime via file.size
- Restore original test for recursive directory ignoring
- Add dedicated tests for unknown mime and unix directory handling

Assisted-by: opencode:opencode
Signed-off-by: Braux Martinez <martinezjb@hitss.com>
@backportbot
backportbot Bot requested a review from skjnldsv as a code owner October 26, 2026 12:42
@backportbot backportbot Bot added 3. to review Waiting for reviews AI assisted labels Oct 26, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.3 milestone Oct 26, 2026
Assisted-by: opencode:deepseek-v4.1-flash-free
Signed-off-by: Braux Martinez <martinezjb@hitss.com>

@bulungasdeveloper bulungasdeveloper left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backport of #65819 to stable35, including the test isolation fix (00b310f). All checks green. LGTM.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant