Getting started
- Install the plugin from the Plugins screen in WordPress, or upload it to
/wp-content/plugins/vanquish-upload-files-for-woocommerce. - Activate it. WooCommerce must be installed and active.
- Go to Upload Files for WooCommerce → Upload fields and create your first upload field. The general settings are under Settings, in four tabs: General, Appearance, Texts and Separate cart items.
- In the Visibility tab of the field, under Where the field appears, choose the pages: product page, cart, checkout, Thank you page, order details.
- In the General tab, set the file types and sizes, and turn on The upload is required if customers must send a file before they order.
WordPress refuses some file types even when a field lists them, for example EPS and AI. Add their extensions in Settings → General → Additional file types. They are accepted for the plugin’s uploads only, never in the Media Library.
Product types. Native simple and variable products are supported. Custom product types added by other plugins are not officially supported.
Large files
There is nothing to configure. Every upload is split into chunks in the browser and reassembled on the server, so the file never travels as a single request. A single large request is what usually produces a 413 error behind Cloudflare, a reverse proxy, or a host with a low post_max_size.
The chunk size comes from your server limits, the smaller of post_max_size and upload_max_filesize, and never exceeds 10 MB. A failed chunk is retried on its own, without restarting the upload. The server then checks the reassembled file against the size the browser reported.
Works in the free version too. The maximum size set on the upload field still applies, together with your server’s disk space and PHP execution time.
Block cart and checkout
Both the classic (shortcode) and the block-based cart and checkout are supported. On the block cart and checkout the upload fields appear in the order-summary area.
Required uploads are checked on the block checkout too: an order with a required upload missing is stopped.
Where customers see their files
Every uploaded file is a tile: a preview of the image, or a label with its type. The tiles appear in the upload area, under the products of the classic cart and checkout, and in an uploads summary.
The summary comes after the products: after the classic cart table, above the payment of the classic checkout, full width after the block cart and checkout, and after the order table on the Thank you and order details pages, with the approval status (Premium) and the download links. Its settings are in Settings → Appearance → Uploads summary.
Files in the emails
The uploaded files also go in the emails, one row per file: its thumbnail (for files kept on your server, on Dropbox and on Google Drive) or the label of its type, its name, which is the download link when the reader may download it, then type, pages or length, size, quantity and approval status. Past 8 files in a field, the email links to the order instead.
- WooCommerce’s order emails: the files under each product. Switch it on or off in Settings → Appearance → Files under each product in the emails.
- The shop’s “New order” email: a block with the files. Each upload field sets it in its editor, tab Notifications → New order email (with Links to the files).
- The “new files” notice to the shop says where the files came from (checkout, order page or a quote request) and has a button to open the order.
- The approval email to the customer (Premium) lists only the files whose status changed, with your note.
Plain-text emails get a list of the files, one per line. With Attach Me Premium, the state of each file’s proof shows in the emails too.
After updating to 2.7.0. The templates emails/order-item-uploads.php and emails/admin-new-order-files.php changed. If your theme has copies of them, compare them with the new ones.
Uploads missing from an order
Uploads stay in a visitor session until the order is created. The session is identified by a cookie named vanupfi_uid: if it does not survive from the upload to the checkout, the order is created with nothing attached.
Turn on Settings → General → Debug log and place a test order. Read the log under WooCommerce → Status → Logs, source vanquish-upload-files. If nothing appears there, check that logging is enabled in that screen’s settings. Then check, in this order:
- Is the
vanupfi_uidcookie present in the browser on the checkout page? - How long passes between the upload and the order, compared with Settings → General → Keep files of visitors who have not ordered (minutes)? When that time elapses, the session and its temporary files are deleted.
- If both look right, deactivate your other plugins, confirm that a test order keeps its files, then re-enable them one at a time.
Cookie consent banners are the most common cause. They block cookies they do not recognise until consent is given. A full-page cache or a CDN dropping the Set-Cookie header does the same.
Files attached to an order live in wp-content/uploads/vanquish-upload-files/, in a subfolder per order, and temporary uploads in its tmp/ folder. Sites that used the plugin before version 2.7.6 keep the wp-content/uploads/wcuf/ folder: nothing is moved.
Customising the templates
Copy the template from the plugin’s templates folder into a vanquish-upload-files folder of your theme (a child theme is best), keeping its sub-folder:
templates/order/upload-form.php
→ your-theme/vanquish-upload-files/order/upload-form.phpThe plugin then uses your copy instead of its own. To change how a single field looks, copy just upload-form/field.php (product, cart, checkout and shortcode pages) or order/field.php (order details and Thank you pages).
When the plugin changes a template you have copied, its admin pages tell you, so you can bring your copy up to date. Copies made for versions before 1.10.0, in the theme’s wcuf folder under the old file names, keep working.
Coming from the CodeCanyon version
Your settings and upload fields from "WooCommerce Upload Files" carry over, and the old [wcuf_...] shortcodes keep working.
Translations
This plugin has its own texts, with a new text domain: vanquish-upload-files-for-woocommerce. Since version 2.7.2, a translation you had made for the old plugin, for example with Loco Translate, is used for the phrases that did not change, about one in seven: among them the upload buttons and messages your customers see ("Click to choose the file or drag it here", "Upload selected files", "Uploaded files", the messages about file size and type). It applies only where this plugin has no translation of its own. The old files are only read, so the old plugin is no longer needed.
- The languages that came with the old plugin (German, Spanish, French, Italian, Polish, Brazilian Portuguese) are all included in this one.
- Texts you had saved in the old plugin's Texts settings carry over with the settings; the ones you never changed use the defaults, translated as above.
- New or rewritten phrases stay in English until they are translated on translate.wordpress.org or with Loco Translate.
Shortcodes Premium
Place the upload form on any page:
[vanupfi_upload_form]
[vanupfi_product_page_upload_form]
[vanupfi_cart_page_upload_form]
[vanupfi_checkout_page_upload_form]
[vanupfi_upload_form_last_order]When you use one of the product, cart or checkout forms, tick the matching page in Settings → General → Place the upload area with a shortcode, so the fields are not shown twice. This applies to the classic cart and checkout only: on the block ones, place the Upload fields block instead.
Required fields stay required. A ticked page without its shortcode leaves the customer unable to complete the order.
Coming from the CodeCanyon version? The old [wcuf_...] shortcodes keep working as aliases of the [vanupfi_...] ones, so you do not need to edit your content.
Works with Request a Quote Premium
With Vanquish Request a Quote for WooCommerce 1.0.3 or newer, the files a customer uploads on the product page go with the product when it is added to the quote list, and reach the quote when the request is sent.
- Required upload fields are required for a quote too: Add to quote waits for the required uploads, as Add to cart does, and the request is not sent until their files are there.
- A product that can only be quoted gets the upload area next to its quote button.
- Request a quote for this cart takes the files of the cart with it.
- The Request a quote button of Request a Quote Premium 1.2.0 (quick quote, a request for that product alone) takes the product's files with it too, since Upload Files 2.7.7.
- The customer sees the files on the quote’s page, and you see them on the quote’s page in the admin, as for an order.
Files in the quote list. To show the uploaded files under each product of the quote list, you need Request a Quote 1.0.4 or newer.
Works with Attach Me
With Vanquish Attach Me for WooCommerce Premium 1.6.3 or newer, you can send the customer a proof of the file they uploaded, for them to approve. Upload Files needs to be 2.6.0 or newer; its free version is enough.
- On the order in the admin, every uploaded file has a Send a proof button.
- It opens Attach Me’s proof form with a title and a message already written.
- Choose the proof file and save it.
The state of the proof (to approve, approved, changes requested) then shows next to the file, on the order page in the admin and on the customer’s order page, where the customer approves it or asks for changes.
Without Attach Me Premium. The “Uploaded files” box of the order shows a line that introduces Attach Me; you can close it.
Multiple files and image tools Premium
- Allow multiple files, in the General tab of an upload field, lets customers send several files with one field, with a minimum and maximum number of files.
- Download all files as zip, on the admin order page, gives you every file of the order in one zip. Since version 2.8.0 also when they are kept on Dropbox, Amazon S3 or Google Drive: they are copied to your server first, step by step, with a progress bar in the Uploaded files box, and the copies are deleted after the download.
- The image crop editor, with rotation and aspect-ratio control.
- The low print resolution warning tells customers when a photo has too few pixels for the size it will be printed at.
- Convert HEIC photos to JPEG converts iPhone photos in the customer’s browser, so they can be previewed, cropped and checked like any photo.
- Compress images stores uploaded photos as lighter JPEG files, compressed and resized to a longest side, to save disk space. It is off by default, and best left off if you print the files.
The image settings are in the Media tab of the upload field.
Costs per file Premium
In the Price & discount tab of an upload field you can add:
- extra costs and discounts per uploaded file, fixed or percentage;
- surcharges per second (audio and video), per file size and per PDF page.
To set the product price based on the number of uploaded files, turn on Settings → General → Product price × number of files.
Cloud storage and cleanup Premium
- Cloud storage: store the files on Dropbox, Amazon S3 or Google Drive instead of your server. Choose it in Settings → General → File storage → Where the files are kept. Files are sent only once an order exists, never before. Their download links check who asks, as for the files on your server: the shop, the signed-in customer of the order, or a link that carries the order key.
- S3-compatible services (since version 2.8.0): Cloudflare R2, Backblaze B2, Wasabi, DigitalOcean Spaces, MinIO. Choose Amazon S3 or S3-compatible, create the bucket and the access key in the service's own dashboard, and fill in S3-compatible endpoint with the address it gives you, in place of Amazon's. Keys and bucket work as for Amazon S3. Region of the S3-compatible service is optional (Cloudflare R2 uses
auto). - File name pattern (Settings → General) renames uploaded files with the order number, SKU, product name and more.
- Upload protection, in Settings → General: Upload limit per visitor (MB per hour) and Minimum free disk space (MB), so nobody can fill your server through the upload fields.
- Upload Files for WooCommerce → Cleaner deletes the files of old orders by age and order status. The orders themselves are not touched. It asks you to confirm before deleting anything, and Repeat every day... turns the cleanup into a rule that runs every night.
Deleted files cannot be recovered. The Cleaner preselects closed orders only; open orders may still need their files.
File approval and visibility rules Premium
- Files need my approval, in the General tab of an upload field: you approve or reject each file from the order page, with one click, and write a note to the customer right under the file. The changes are saved with the order Update button.
- Visibility rules, in the Visibility tab: show a field by product, category, tag, brand, user role, order status, payment gateway, shipping method and time.
- Show the upload fields of the last order on the My Account dashboard, or anywhere with
[vanupfi_upload_form_last_order].
Without an active licence the Premium visibility conditions are not applied, but they are not deleted: they apply again as soon as Premium is active.
Still stuck?
Open a ticket and include the debug log.