Back to blog
February 23, 2026·DriveWidget Team

Public vs Private Widget Uploads — When to Use Each

Understand the difference between public and private upload widgets in DriveWidget. Learn when to use each mode and how to configure them.

tutorialwidgetsecuritysharing

Two Ways to Accept File Uploads

Every DriveWidget upload widget has two access modes: Public and Private. Choosing the right one depends on who needs to upload files and how you're distributing the upload link.

Public Uploads

Public widgets allow anyone with the link to upload files — no API key, no login, no authentication required.

When to Use Public Uploads

  • Client file collection — Share a link with clients to send logos, contracts, or assets
  • Event photo collection — Create a QR code that guests scan to upload photos
  • Job applications — Accept resumes from candidates on your careers page
  • Student assignments — Let students submit work without needing an account
  • Contact forms with attachments — Embed on your website for anyone to use

How to Enable Public Uploads

  1. Go to your Dashboard and open a connection
  2. Click the Widgets tab
  3. Click Edit on your widget
  4. Go to the Sharing tab
  5. Toggle Public Upload on
  6. Optionally set a Custom URL Slug (e.g., client-uploads)
  7. Click Save Changes

Your widget is now accessible at:

https://api.drivewidget.com/u/your-custom-slug

Public Upload Security

Even though public uploads don't require authentication, they're not unprotected:

ProtectionHow It Works
Rate limitingPrevents abuse with per-IP request limits
File type validationOnly allow specific file types (PDF, images, etc.)
File size limitsEnforce max upload size per your plan
CAPTCHAOptional Cloudflare Turnstile integration
Password protectionAdd a password gate before the upload page

Private Uploads

Private widgets require an API key to upload files. The widget itself is only accessible to authenticated users.

When to Use Private Uploads

  • Internal tools — Your team uploads files through a dashboard you built
  • SaaS integrations — Your app uploads files on behalf of users
  • Automated workflows — Scripts or bots that upload files programmatically
  • Sensitive documents — When you need to control exactly who can upload

How Private Uploads Work

Private widgets use the embed URL with an API key:

<iframe
  src="https://api.drivewidget.com/widget/YOUR_WIDGET_ID/embed"
  width="100%"
  height="300"
  frameborder="0"
></iframe>

For API-based uploads, include your API key in the header:

curl -X POST https://api.drivewidget.com/v1/YOUR_CONNECTION_ID/upload \
  -H "X-API-Key: your-api-key" \
  -F "file=@document.pdf"

Quick Comparison

FeaturePublicPrivate
Authentication requiredNoYes (API key)
Shareable linkYes (/u/slug)No
QR code supportYesNo
Best forExternal usersInternal/API use
Rate limitingAutomaticAPI key based
Social sharing buttonsYesNo
Embed on any websiteYesYes (with API key)
"Powered by DriveWidget" badgeYes (free tier)Yes (free tier)

Best Practice: Start Public, Add Security as Needed

For most use cases, start with a public widget and add security layers:

  1. Public + file type restriction — Good for most client-facing use cases
  2. Public + password protection — When you want a simple access gate
  3. Public + CAPTCHA — When you expect high traffic or potential abuse
  4. Private + API key — When you need full programmatic control

Try It Now

Create a free account and set up your first upload widget in under 2 minutes:

Create Your Upload Widget →

Share this article

Ready to collect files?

Start using DriveWidget for free. No credit card required.