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:
| Form | The files belong to |
|---|---|
| Booking form | The booking as a whole. |
| Attendee form | One attendee. Each space booked has its own uploads. |
| User fields | The person's user profile, so they are on file for later bookings. |
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
-
Go to Events then Forms Editor and open the booking form, attendee form or user fields you want to add it to.
-
Click Add booking field, type a Label, and choose upload as the Type.
-
Click the gear icon on the row to open the field's options and set the limits you need. They are listed below.
-
Tick Required if a booking can't be made without a file.
-
Click Save Form.
The options of an upload field.
Upload field options
| Option | What it does |
|---|---|
| Tip Text | A hint shown beside the label. |
| Allow Multiple Uploads | Lets the visitor attach more than one file to this field. |
| Max Files | The most files the field accepts. |
| File Type | Any Type, or limit the field to images, documents or spreadsheets. |
| Allowed Extensions | A comma-separated list of file extensions, such as jpg, png, pdf. When filled in, it overrides File Type. |
| Max File Size | The largest file accepted, in bytes. 2097152 is 2 MB. |
| Min Image Width, Max Image Width, Min Image Height, Max Image Height | Limits 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_bookingscapability); - 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.