Skip to content

Fix media import uploads for ETL file types#330

Closed
apodacaduron wants to merge 1 commit into
mainfrom
media-import-file-picker-accepts-unsupported-extensions
Closed

Fix media import uploads for ETL file types#330
apodacaduron wants to merge 1 commit into
mainfrom
media-import-file-picker-accepts-unsupported-extensions

Conversation

@apodacaduron
Copy link
Copy Markdown
Contributor

@apodacaduron apodacaduron commented May 6, 2026

Description

Adds the source: "import" field to media import chunk upload requests while preserving Dropzone’s chunk metadata.

Without the import source flag, the backend validates uploads against MEDIA_ALLOWED_EXTENSIONS instead of ETL_VID_EXT, causing allowed media import file types like .mov to fail with 415.

How to Test

  1. Go to /import/media/.
  2. Click “Upload files”.
  3. Select a file type allowed by ETL_VID_EXT but not MEDIA_ALLOWED_EXTENSIONS, such as .mov.
  4. Confirm the upload succeeds and does not return 415.
  5. In DevTools Network, confirm /admin/api/media/chunk includes source: import plus chunk fields like dzuuid and dzchunkindex.
  6. Confirm normal actor/bulletin media uploads still validate against MEDIA_ALLOWED_EXTENSIONS.

Jira ID (if applicable)

BYNT-1695

@apodacaduron apodacaduron self-assigned this May 6, 2026
@apodacaduron apodacaduron requested a review from level09 as a code owner May 6, 2026 19:09
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 645c57c2-f715-4701-8ccd-3d6c996ebfee

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch media-import-file-picker-accepts-unsupported-extensions

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@apodacaduron
Copy link
Copy Markdown
Contributor Author

Closing this PR as #334 solves it in a much simpler way

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant