Skip to main content

Upload Field

ProSince 3.5Requires Events Manager Pro. Compare plans

An upload field lets people attach files while they book: a photo for a badge, a proof of membership, a signed form. It is one of the field types in the form editor, and can be used in three places:

FormThe files belong to
Booking formThe booking as a whole.
Attendee formOne attendee. Each space booked has its own uploads.
User fieldsThe person's user profile, so they are on file for later bookings.
Before you start

Upload fields use Events Manager's uploader. Go to Events then Settings then General then Uploads and set Enable Visual Uploader to Yes to give visitors the upload area with previews. The same section holds the site-wide defaults under Upload Limits, such as Maximum File Size, Maximum Files Per Upload and Allow Multiple Uploads, and the default image dimension limits. Each upload field can override them.

Add an upload field​

  1. Go to Events then Forms Editor and open the booking form, attendee form or user fields you want to add it to.

  2. Click Add booking field, type a Label, and choose upload as the Type.

  3. Click the gear icon on the row to open the field's options and set the limits you need. They are listed below.

  4. Tick Required if a booking can't be made without a file.

  5. Click Save Form.

The options of an upload field.

Upload field options​

OptionWhat it does
Tip TextA hint shown beside the label.
Allow Multiple UploadsLets the visitor attach more than one file to this field.
Max FilesThe most files the field accepts.
File TypeAny Type, or limit the field to images, documents or spreadsheets.
Allowed ExtensionsA comma-separated list of file extensions, such as jpg, png, pdf. When filled in, it overrides File Type.
Max File SizeThe largest file accepted, in bytes. 2097152 is 2 MB.
Min Image Width, Max Image Width, Min Image Height, Max Image HeightLimits in pixels for uploaded images. Images outside them are rejected.

Leave an option empty to use the site-wide default from the Uploads settings. Whatever you set, a file can't be larger than the upload limit of your server and of WordPress.

What visitors see​

The field shows an upload area in the booking form. The visitor chooses or drops files, sees a preview of each one, and can remove a file before submitting. A file that breaks one of the field's limits is rejected with a message, and the booking can't be submitted with a required upload field empty.

View and manage uploaded files​

  • On a booking. Open the booking in Events then Bookings. Uploaded files are listed with the other form answers, attendee uploads under each attendee. You can open a file, remove it, or add another, then save the booking.
  • On a user profile. Files from upload fields in your user fields are shown on the person's profile in wp-admin, under Further Information, where you can add or remove them.

Who can open the files​

Uploaded files are not public. They are stored in a protected folder and served through Events Manager, which checks who is asking:

  • people who can manage the booking (the event owner, or anyone with the manage_others_bookings capability);
  • the logged-in customer who made the booking;
  • for user field uploads, the user themselves.

Anyone else, including a visitor who has the file's address, is refused. A guest who booked without an account can't open their uploads afterwards.

Troubleshooting​

Large files are rejected

Compare the field's Max File Size with the site default in the Uploads settings and with your server's own upload limit, which WordPress shows under Media then Add New Media File. The lowest of the three applies.