File Uploads Archives - Plugin Republic https://pluginrepublic.com/support-categories/file-uploads/ WooCommerce Plugins Sat, 30 Sep 2023 08:16:35 +0000 en-US hourly 1 https://pluginrepublic.com/wp-content/uploads/2020/10/cropped-favicon-1-32x32.png File Uploads Archives - Plugin Republic https://pluginrepublic.com/support-categories/file-uploads/ 32 32 How to retrieve the page count of an uploaded PDF https://pluginrepublic.com/documentation/how-to-retrieve-the-page-count-of-an-uploaded-pdf/ https://pluginrepublic.com/documentation/how-to-retrieve-the-page-count-of-an-uploaded-pdf/#respond Tue, 25 Jul 2023 09:27:58 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=3496689 You can now access the page count for a PDF upload in your calculations by using this tag: {field_xxx_pdf_count} Note that you will need the Pro version of Add-Ons Ultimate and the Advanced Uploads extension to retrieve an uploaded PDF’s page count. The first step is to enable the feature by going to WooCommerce > […]

The post How to retrieve the page count of an uploaded PDF appeared first on Plugin Republic.

]]>
You can now access the page count for a PDF upload in your calculations by using this tag: {field_xxx_pdf_count}

Note that you will need the Pro version of Add-Ons Ultimate and the Advanced Uploads extension to retrieve an uploaded PDF’s page count.

The first step is to enable the feature by going to WooCommerce > Settings > Product Add-Ons > Uploads. Enable these settings and click ‘Save changes’.

  • Enable PDF uploads
  • Enable PDF page count

Then, create the following fields.

An Upload field which now accepts a PDF file. You will need to disable ‘Allow multiple uploads’ as the calculation will only read 1 file.

Create a Calculation field that will reference the Upload field. When a PDF file is uploaded, the calculation will retrieve the number of pages.

The post How to retrieve the page count of an uploaded PDF appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/how-to-retrieve-the-page-count-of-an-uploaded-pdf/feed/ 0
Missing thumbnails in image uploads https://pluginrepublic.com/documentation/missing-thumbnails-in-image-uploads/ https://pluginrepublic.com/documentation/missing-thumbnails-in-image-uploads/#respond Mon, 23 Aug 2021 13:28:52 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=1241598 If you upload an image but the preview thumbnail is missing this is probably because the image size is too large. You can update the maximum permitted thumbnail size by using the following filter:

The post Missing thumbnails in image uploads appeared first on Plugin Republic.

]]>
If you upload an image but the preview thumbnail is missing this is probably because the image size is too large.

You can update the maximum permitted thumbnail size by using the following filter:

View this code snippet on GitHub.

The post Missing thumbnails in image uploads appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/missing-thumbnails-in-image-uploads/feed/ 0
Image missing in order email https://pluginrepublic.com/documentation/image-missing-in-order-email/ https://pluginrepublic.com/documentation/image-missing-in-order-email/#respond Wed, 30 Sep 2020 06:52:03 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=625482 If you have a product with an upload field and you receive an order and/or an order email without the uploaded file or image, this could be because you didn’t set the upload field to ‘Required’. If this option is selected but it’s still possible to add the product to the cart without uploading the […]

The post Image missing in order email appeared first on Plugin Republic.

]]>
If you have a product with an upload field and you receive an order and/or an order email without the uploaded file or image, this could be because you didn’t set the upload field to ‘Required’.

Required field

If this option is selected but it’s still possible to add the product to the cart without uploading the file, please see this article.

The post Image missing in order email appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/image-missing-in-order-email/feed/ 0
Only allow uploads for one file type https://pluginrepublic.com/documentation/only-allow-uploads-for-one-file-type/ https://pluginrepublic.com/documentation/only-allow-uploads-for-one-file-type/#respond Sat, 01 Aug 2020 09:17:02 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=544444 Let’s say you only want to allow one file type to be uploaded. Here’s an example of how to ensure users can only upload zip files (but you can amend this for any file type). Here’s how to add a snippet.

The post Only allow uploads for one file type appeared first on Plugin Republic.

]]>
Let’s say you only want to allow one file type to be uploaded. Here’s an example of how to ensure users can only upload zip files (but you can amend this for any file type).

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Only allow uploads for one file type appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/only-allow-uploads-for-one-file-type/feed/ 0
Change upload table layout https://pluginrepublic.com/documentation/change-upload-table-layout/ https://pluginrepublic.com/documentation/change-upload-table-layout/#respond Mon, 24 Feb 2020 16:53:58 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=267751 You can adjust the widths of the columns in the upload field by using this CSS:

The post Change upload table layout appeared first on Plugin Republic.

]]>
You can adjust the widths of the columns in the upload field by using this CSS:

View this code snippet on GitHub.

The post Change upload table layout appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/change-upload-table-layout/feed/ 0
AJAX upload times out https://pluginrepublic.com/documentation/ajax-upload-times-out/ https://pluginrepublic.com/documentation/ajax-upload-times-out/#respond Mon, 10 Feb 2020 13:00:05 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=249761 If you find that users on a slow connection, or with large files to upload, are experiencing a timeout message with the AJAX uploader, you can increase the length of time. Use the snippet below to increase the default value of 30,000 ms (30 seconds) to a greater value: Here’s how to add a snippet […]

The post AJAX upload times out appeared first on Plugin Republic.

]]>
If you find that users on a slow connection, or with large files to upload, are experiencing a timeout message with the AJAX uploader, you can increase the length of time.

Use the snippet below to increase the default value of 30,000 ms (30 seconds) to a greater value:

View this code snippet on GitHub.

Here’s how to add a snippet to WordPress.

The post AJAX upload times out appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/ajax-upload-times-out/feed/ 0
Broken thumbnails in image uploads https://pluginrepublic.com/documentation/broken-thumbnails-in-image-uploads/ https://pluginrepublic.com/documentation/broken-thumbnails-in-image-uploads/#respond Sun, 02 Feb 2020 09:08:29 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=239946 If you find that uploaded images are displaying broken thumbnails, you might find that it is related to your WordPress and Site Address URLs in Settings > General. If you have an SSL certificate installed, your URL should start ‘https://’ but sometimes your URLs are still set to ‘http://’. (Note the missing ‘s’). This means […]

The post Broken thumbnails in image uploads appeared first on Plugin Republic.

]]>
If you find that uploaded images are displaying broken thumbnails, you might find that it is related to your WordPress and Site Address URLs in Settings > General.

If you have an SSL certificate installed, your URL should start ‘https://’ but sometimes your URLs are still set to ‘http://’. (Note the missing ‘s’).

This means that the plugin tries to filter out the wrong part of the image URL. To fix, just update your settings so that your URLs are set to ‘https://’.

The post Broken thumbnails in image uploads appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/broken-thumbnails-in-image-uploads/feed/ 0
Increase upload file size https://pluginrepublic.com/documentation/increase-upload-file-size/ https://pluginrepublic.com/documentation/increase-upload-file-size/#respond Tue, 01 Oct 2019 08:18:17 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=126874 To increase the permitted upload file size, go to WooCommerce > Settings > Product Add-Ons and update the ‘Max file size’ setting. Read this article for a complete guide to uploading files on a WooCommerce product page.

The post Increase upload file size appeared first on Plugin Republic.

]]>
To increase the permitted upload file size, go to WooCommerce > Settings > Product Add-Ons and update the ‘Max file size’ setting.

Upload file size

Read this article for a complete guide to uploading files on a WooCommerce product page.

The post Increase upload file size appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/increase-upload-file-size/feed/ 0
Change upload field messages https://pluginrepublic.com/documentation/change-upload-field-messages/ https://pluginrepublic.com/documentation/change-upload-field-messages/#respond Wed, 18 Sep 2019 12:20:33 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=118671 You can filter all the messages on the AJAX file upload field, e.g. “Drop files here to upload”, using the following snippets: You can add snippets to your site by following these steps.

The post Change upload field messages appeared first on Plugin Republic.

]]>
You can filter all the messages on the AJAX file upload field, e.g. “Drop files here to upload”, using the following snippets:

View this code snippet on GitHub.

You can add snippets to your site by following these steps.

The post Change upload field messages appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/change-upload-field-messages/feed/ 0
Enable multiple file uploads https://pluginrepublic.com/documentation/enable-multiple-file-uploads/ https://pluginrepublic.com/documentation/enable-multiple-file-uploads/#respond Thu, 18 Apr 2019 09:33:11 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=60819 WooCommerce Product Add Ons Ultimate has an upload field which allows your users to upload files. By default, the upload field only allows one file to be uploaded but you can change that. To enable multiple file uploads, select the ‘Allow multiple uploads’ field. If you want to specify a maximum number of uploads, you’ll […]

The post Enable multiple file uploads appeared first on Plugin Republic.

]]>
WooCommerce Product Add Ons Ultimate has an upload field which allows your users to upload files. By default, the upload field only allows one file to be uploaded but you can change that.

To enable multiple file uploads, select the ‘Allow multiple uploads’ field.

If you want to specify a maximum number of uploads, you’ll need to enable AJAX file uploads. This gives you the ability to allow multiple uploads and specify the maximum number of uploads.

To enable the AJAX uploader, go to WooCommerce > Settings > Product Add-Ons and select the ‘Enable AJAX uploader’ checkbox.

There’s a complete guide to uploading files here.

The post Enable multiple file uploads appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/enable-multiple-file-uploads/feed/ 0