Skip to content

Conversation

@eiresendez
Copy link
Contributor

@eiresendez eiresendez commented Dec 15, 2025

Issue & Reproduction Steps

Photo/Video control fails when recording video in WebEntry: the upload POST /api/1.0/webentry/processes/{process}/web_entries/{node}/files returns HTTP 422.

Reproduce: open a WebEntry form containing the Photo/Video control in video mode, record/upload a clip; the request is rejected.

Solution

  • Whitelist webm in config/files.php allowed extensions.
  • Map webm MIME type (video/webm) to pass MIME validation.

How to Test

  1. Clear cached config if needed: php artisan config:clear.
  2. Open a WebEntry that includes the Photo/Video control set to video mode.
  3. Record or upload a WebM video via the control.
  4. Confirm the upload succeeds (no 422), and the file is accepted.

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

ci:deploy

@vladyrichter
Copy link

QA server K8S was successfully deployed https://ci-80e5e7aa32.engk8s.processmaker.net

@eiresendez eiresendez removed the request for review from PaolaPellegrini December 19, 2025 17:52
@vladyrichter
Copy link

QA server K8S was successfully deployed https://ci-80e5e7aa32.engk8s.processmaker.net

@processmaker-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants