Faith Forge LabsIraq

Keep an optional photograph from becoming a barrier to the whole request

A camera can add useful context to a mobile request. It should not silently become mandatory when the organisation's rule says a written description is sufficient. A permission refusal needs to be handled according to that rule, without repeatedly prompting the user or pretending an image was attached.

This fictional repair concerns a staff intake page for equipment awaiting assessment. The photograph is supporting material; the asset reference and written description are the required inputs. The example does not decide which evidence a real technical assessment must require.

Reproduce the failure without granting permission

The approved intake rule R-6 permits a request with no image. In the controlled example, the staff member enters asset reference EQ-31 and a complete description, then chooses the optional camera action. The browser asks for permission and the person declines.

The application catches the camera failure by setting a global form-error state. The send button stays disabled even though the required text is still present. The user cannot continue without reloading, which risks losing the description.

No request has reached the receiving system. The camera has not captured an image. The failure is not an unknown submission status; it is a local interface branch blocking an otherwise valid task.

Inspect the rule and the device capability separately

The project owner confirms that R-6 applies to this intake type. The receiving interface already accepts a record without an attachment when the required fields are valid. Another intake type may have different evidence requirements and is outside this correction.

The browser's getUserMedia documentation describes permission and other failure conditions for obtaining media. A web application must handle refusal; it should not assume that every supported phone or browser can provide the same capture path.

The inspected problem is narrower than replacing the application. The text entry and receiving record work, and the optional-photo branch can be isolated from the required-field validation. The team chooses a bounded repair that follows the existing business rule.

Let the user continue with an honest attachment state

After refusal, the corrected interface explains that the camera was not opened and no photograph was added. The written reference and description remain available. “Continue without a photograph” returns the person to the valid intake task without changing the browser's permission setting.

The application does not immediately request camera access again. A later explicit choice to use a supported capture option can follow the browser's normal permission behaviour, but continuing the task does not depend on persuading the person to grant access.

The receiving request contains the required fields and no image attachment. Its displayed state says that no photograph was supplied. There is no artificial placeholder file or claim that a camera failure constitutes a completed image check. The organisation does not need the person's permission decision stored as an extra intake fact merely to represent the absence of a photograph.

Check the result and the paths that must remain different

The staff member repeats the controlled refusal with EQ-31, continues without a photograph and sends the request. Intake I-31 is created with the correct asset reference and description. The receiving reviewer can open it and see that no image is available. The result is usable under R-6 and does not imply that an equipment assessment has already been completed.

A separate permitted-camera example captures an agreed test image. The preview, upload and receiving attachment are checked through the supported path. Cancelling the capture without producing an image leaves the request in the no-photo state; it does not attach an older image from another attempt.

An intake with an empty required description remains blocked with the appropriate explanation. The repair does not turn off all validation to make the first case succeed. An unsupported capture setup still offers the permitted text-only continuation for this intake type.

Preserve the limits in the handover

Record R-6, the affected form branch, the device and browser conditions tried and the receiving checks. If the business later requires a photograph for a particular task, that is a rule change needing its own interface, review and alternative arrangements. It should not be introduced accidentally through an exception handler.

Mobile-work development and focused system repair can assess boundaries like this. Bring the task's actual evidence requirement and the point where the user is blocked to the project discussion. A smaller change is justified when it restores the approved task and preserves the controls around it.