Does saying “PDF files only” make a website upload reliable?

A person examines a printed sample beside a laptop and blue folder at a print-shop counter.

Key points

  1. A label or file-picker hint is not enough: distinguish requirements, interface hints and server-side validation.
  2. Define the file purpose and handling responsibility; successful upload is not content approval.
  3. Check expected outcomes with authorised, non-sensitive samples and explain the next step when requirements are not met.

“PDF only” states a requirement, not proof of validation

No. Even if the upload field says “PDF only”, establish how the receiving system checks files. MDN explains that the accept attribute guides the browser’s file chooser rather than validating selected file types; expected requirements still need server-side validation.

A business owner need not write the checks personally, but should ask what customers are told, what the system actually accepts and who handles the result. These are separate questions. This article does not describe ways to bypass upload restrictions.

Start with the business need, not another company’s form

Write down why a file is required. Does the team need an approved document to read, or an editable production file? Those purposes may require different formats. If an attachment is unnecessary, do not request one simply to make the form appear comprehensive.

Have the processing team agree permitted formats, file count and size limits, then confirm feasibility with the maintainer. Do not adopt another website’s numbers as your specification or promise to handle every file before checking the real process.

A closed laptop, printed samples, paper card and pen rest on a wooden table.

Explain requirements before the customer chooses a file

Place the approved requirements beside the field and explain the purpose of the file. If a submission fails a requirement, identify what needs correction and the available next step rather than showing only “failed”. Use real configured formats and limits; this article invents none.

Any alternative submission route must have approved access and data-handling arrangements. Do not improvise an error message directing private documents to an unapproved account or a publicly shared location.

Which results should an acceptance check distinguish?

Authorised people can prepare non-sensitive conforming samples and samples outside the agreed requirements, then check chooser guidance, receipt, error messages and handover in an approved test environment. This does not authorise probing a live website without permission.

Record sample purpose, expected outcome, observed result and check time. MDN’s distinction between hints and validation means that an apparently restricted file chooser does not prove the receiving system has passed. This article has uploaded or tested no real client documents.

A received file is not an approved job

Technical receipt is separate from content being usable, complete or approved by the client. A readable document may not be the final agreed version, and production material may still lack necessary information. This is a handover recommendation, not a claimed automatic platform judgement.

Identify who checks the content, who may request missing material and what evidence allows the next stage to start. File-type checking is not a comprehensive security guarantee either. The company and maintainer must separately establish security and retention arrangements rather than treating this article as a specialist assessment.

Frequently asked questions

Does the accept attribute validate file contents?

No. MDN describes a selection hint rather than actual type validation; the receiving system still needs appropriate checks.

Can we copy another website’s size limit?

It is not advisable. Establish your business need, actual system limits and handling process before publishing requirements.

Can production begin as soon as a file is received?

Not necessarily. Confirm content, version and required approval; successful receipt is not work authorisation.

Should tests use real client documents?

Do not use sensitive files merely for convenience. Prepare authorised, non-sensitive samples suited to the test purpose.

Does passing a format check prove a file is completely safe?

No. Format requirements are only one check; other security and retention arrangements need separate assessment.

About the author: This article was written by the HKONE team. HKONE is a Hong Kong digital marketing and AI automation company providing social media management, website design, AI customer service and GEO / SEO for SMEs. Where this article mentions platform fees or policies, the platform's official information takes precedence.

Tell us about your business first. Then decide.

The consultation is free. We will understand your situation before recommending a plan and a quote.