A filename on the form does not mean the file was sent
A buyer selects a document, sees its name beside the upload control and sends a question. Staff receive the question and a string that looks like a path. They cannot open the intended attachment because no file content arrived.
This fictional investigation concerns a private sample discussion. It assumes an inspected receiver that supports a file upload through a documented multipart form interface. All records and files are synthetic, and the review uses an isolated receiver. No customer document or live provider operation is involved.
Identify what the buyer intended to send
Buyer account B-82 is authorised to discuss sample S-82. The fixture document is named sample-notes.pdf; its bytes, size and SHA-256 digest are recorded before submission. The question concerns the marked area in that document.
The browser control shows the selected filename. The application’s custom adapter reads the file input’s value property and adds it to a text-only payload. In the inspected fixture, that value is C:\fakepath\sample-notes.pdf.
The receiving record contains that string and the question. It contains no attachment object or file bytes. The apparent path is not a location the server can open on the buyer’s computer. Asking staff to remove the prefix or try another local folder would not create the missing content.
Locate the transport mistake
The HTML Standard’s file-input description distinguishes the value string from the selected files accessible through files. The fake-path prefix is part of the defined value behaviour; it is not the user’s real directory path.
Inspection confirms that the intended File is present in the control’s selected-file list immediately before sending. The adapter simply never adds that File to the request. The failure is therefore different from an uploaded file being rejected for size, a successful upload losing its confirmation or a storage service returning the wrong document.
The existing receiving interface supports a file-valued field. Its authorised test instructions name the field, permitted size and accepted document format. This matters: changing the client cannot make an arbitrary text-only endpoint support attachments.
Use the supported file representation
The corrected adapter obtains the selected File and includes it in FormData under the documented attachment field, together with the allowed question and sample reference. The FormData interface supports file/blob values as well as text entries. The request follows the receiver’s supported encoding and field contract.
The client checks that the required selection exists and gives a useful error when it does not. It presents the permitted size and type before the buyer attempts to send. The receiver independently validates the actual upload, its limits and the account’s authority over S-82. A filename extension or client-supplied MIME value alone is not treated as proof that content is safe or acceptable.
The application does not ask for, store or reconstruct a local directory path. It needs the deliberately selected document content and its intended business relationship. The displayed filename remains a helpful label, not an attachment identity or a transport mechanism.
Verify the receiving evidence
In the corrected fixture, the receiver records one question for B-82 and S-82, together with an attachment reference. Reading that attachment through the authorised route returns bytes whose digest matches the selected source fixture. Its size also agrees, and the reviewer can open the intended document.
The acknowledgement says that the question and attachment were received for review. It does not say that the specification was approved, that a requested change is feasible or that staff have already examined the marked area.
| Review fixture | Required outcome |
|---|---|
| B-82 submits the selected valid file for S-82 | Question and intended file bytes received under that relationship |
| No file selected where the question requires one | Clear correction; no accepted complete submission |
| Same filename, different permitted test content | Received digest matches the newly selected bytes, not a cached earlier file |
| File exceeds the agreed limit | Rejected with a usable explanation; no claimed complete receipt |
| Another buyer requests B-82’s attachment directly | Access denied under the receiving authorisation rules |
The same-name control matters because staff might otherwise use the filename to declare success. The test uses a second synthetic sample-notes.pdf with different contents and a different digest. Its permitted submission receives a distinct attachment record, and the intended recipient can distinguish the two questions. The earlier attachment is not overwritten by the label.
An unrelated sample discussion S-83 remains unchanged. Fixing the upload does not broaden which customer can access the workspace.
Keep the result within its actual scope
The review proves the selected transport and relationship in the described isolated arrangement. It is not a complete file-security assessment, a provider acceptance test or permission to upload confidential documents elsewhere. Operational handling, retention, scanning and incident responsibilities remain part of the actual project.
The handover includes the receiver’s supported field contract, the selection-versus-value distinction and the fixture identities used to reconcile the result. If a future provider change breaks the operation, the maintainer can inspect whether bytes were selected, sent, accepted and retrieved instead of relying on the filename shown beside the control.
Read about buyer sample workspaces for the wider task of keeping the buyer, sample, document and question connected.
