Inicio - Documentación - POM Theme - 06 Forms - Accept local file and audio uploads

Accept local file and audio uploads

POM Forms provides File Upload and Audio fields for files handled with a stored submission. Local uploads require submission storage to be active and are available only through authorized submission details.

Use Google Drive Upload when files should go directly to a configured Drive folder instead.

Set the global boundary

An administrator opens Settings → POM Theme → Forms → General and reviews:

  • Store submissions globally
  • Maximum upload size (MB)
  • Allowed file types

The global size is the upper limit. A field can impose a smaller limit but cannot expand the site-wide boundary. Leave the MIME list empty only when the safe defaults fit the workflow.

Configure a local upload field

  1. Open the form’s Builder tab.
  2. Add File Upload or Audio.
  3. Set a clear Label, Name, and Help Text.
  4. Under Field-Specific Settings, configure:
    • Max Size (MB)
    • Allowed MIME Types
    • Max Files
    • Multiple Files, when appropriate
  5. For Audio, decide whether to Enable Browser Recorder. File selection remains the fallback when recording is unavailable.
  6. Mark the field required only when the workflow cannot continue without a file.
  7. Save the form.

State accepted formats and the effective limit in help text. File extensions alone do not define the accepted MIME type.

Enable secure storage

Open Storage/Advanced and confirm:

  1. Storage Override produces an effective enabled status.
  2. Store Uploaded Files is enabled.
  3. The Retention Period (days) matches the site policy.
  4. Attach Uploads to Admin Emails is enabled only when recipients genuinely need attachments.

If storage is disabled, frontend submissions containing local File or Audio uploads are rejected. Drive uploads are not affected because they are stored remotely.

Local uploads require hosting that enforces the theme's access-protection rules. Apache must honor .htaccess rules; other web servers need equivalent protection configured by the hosting provider. If the theme cannot prepare the protection files, it rejects the upload. Ask your hosting provider to verify that direct file requests are blocked before accepting private documents.

Existing stored files remain available through authorized submission details after updating the theme. Optional file fields can be left empty without preparing upload storage.

Verify handling

Submit:

  • One permitted file below the limit.
  • A file with a prohibited MIME type.
  • A file above the field limit.
  • Too many files.
  • An Audio recording and a selected audio file when both paths are relevant.

When storage is enabled, open Forms → Submissions and verify that an authorized reviewer can access the file and an unauthorized user cannot.

Large or numerous email attachments can exceed mail-provider limits. Prefer reviewing secured stored files when attachment delivery is unnecessary.