aditya zen - Web & Mobile App Developer

How to Secure Drawing Uploads in a Business Quote Form

me_adityazen
me_adityazen•November 28, 2026•6 min read
How to Secure Drawing Uploads in a Business Quote Form

AI Overview

A quotation upload should accept only needed formats, validate content server-side, limit size and quantity, generate safe storage names, scan files and restrict access to the relevant team. Store the upload separately from the public website and keep a traceable link to the quote request.

Summarize this article
ChatGPTClaudePerplexityGeminiGrokCopilot

A quote form for a machine shop or architect is often useless without an attached drawing. Yet a file input is one of the riskiest parts of a public website: anyone can submit a renamed executable, an oversized archive or a document that contains confidential design work. The answer is to accept the files the business needs while controlling how they arrive, where they live and who can open them.

The OWASP File Upload Cheat Sheet recommends an allowlist of extensions, independent file-type validation, generated filenames, size limits, authorisation and storage outside the web root. A browser-side “PDF only” hint improves the form experience, but it is not a security boundary; the server must validate independently.

Decide what the estimator actually needs

Start with one real quotation. Does the team need a PDF drawing, an image, a CAD file or all three? Which formats can it safely open? Define a per-file and total-request size limit based on actual drawings, not an arbitrary tiny number that forces prospects to email attachments instead. If a format requires specialist software or macros, consider asking for a PDF preview first and requesting the native file only after an initial conversation.

For a CNC RFQ, capture the project contact, material, quantity and revision along with the upload. Give each file a server-generated ID and attach it to that request. Keep the customer's original name as display metadata after sanitising it; never use it as the storage path. The staff member should see whether the file is new, replaced or superseded.

Protect both upload and download

Validate the allowed type using more than the extension or browser-supplied Content-Type. Scan the file before it enters the normal staff workflow, and quarantine anything that fails. Save it to private storage rather than a public /uploads URL. A download endpoint should check the staff member's permission for that specific quote before returning the file. Expiring links can help where direct storage access is necessary, but a link alone should not become permanent public access.

Set request limits so repeated large submissions cannot exhaust storage or processing capacity. If scanning is asynchronous, tell the buyer the request was received while showing staff that the attachment is still pending review. Do not ask an employee to open the file as a workaround while it is unscanned.

Test the bad paths before launch

Try a valid drawing, a file with a deceptive extension, a file over the limit, two simultaneous submissions and a revoked staff account accessing an old link. Check that a failed attachment does not create an apparently complete quote request. Confirm the customer can retry without producing duplicate records. Review retention: old designs should not stay indefinitely in an overlooked bucket.

My manufacturer quote-request guide covers the wider RFQ journey. If drawings are central to your sales process, I can build the upload, review and permission flow around that journey at adityazen.

Author

me_adityazen

Full-Stack Web & Mobile App Developer building bespoke digital products.

Share this article

Related Articles

Available for New Projects

Have a Project? Let's Connect

Have an idea for a website, web app, or mobile application? Send a quick message with your requirements and let's bring it to life.