How to limit your page accepted file types

A good way to thank your user for submitting files, is by sending a thank-you message or email. To make this as simple as possible, File Request Pro allows you to set up a custom thank-you email for your users.

How to limit your page accepted file types

Select “Page settings” from your dashboard.

File Request Pro - Your page settings

Under the tab “Advanced Settings” you will find

File Request Pro - Thank you email

Accept attribute value is a string that defines the file types the drop zone should accept. This string is a comma-separated list of unique file type specifiers. Because a given file type may be identified in more than one manner, it's useful to provide a thorough set of type specifiers when you need files of a given format.

Unique file type specifiers

A unique file type specifier is a string that describes a type of file that may be selected by the user. Each unique file type specifier may take one of the following forms:

  • A valid case-insensitive filename extension, starting with a period (“.”) Character. For example: .jpg, .pdf, or .doc.
  • A valid MIME type string, with no extensions.
  • The string audio/* meaning “any audio file”.
  • The string video/* meaning “any video file”.
  • The string image/* meaning “any image file”.

The accept attribute takes as its value a string containing one or more of these unique file type specifiers, separated by commas. For example, a file picker that needs content that can be presented as an image, including both standard image formats and PDF files, might look like this: image/*,.pdf