Code

Discussion on WooCommerce Upload Files

Discussion on WooCommerce Upload Files

Cart 7,576 sales
Recently Updated

vanquish supports this item

Supported

4907 comments found.

Hello,

I’m sorry to bother you again but I have to come back with a very important issue for me. I build a site for a photo print shop where customers can upload a number of photos to be printed. Unfortunately, when a mobile phone is used for these uploads, the customer can select in the photo gallery of the phone only one picture once instead of multiple photos. Because most customers use mobile phones to access the site to send pictures to print, this inconvenience is very disturbing and greatly compromises my client’s business. I really need help on this issue.

Regards, Alex

Unfortunately this goes beyond the plug-in controll. When the user click on the input file button, from that point the browser takes controls showing its file selection dialog controller.
The browser file selection contoller (for obvious security reasons) cannot be override by JavaScript applications. It however should allow users to multiple select files (maybe just keep pressing on any file to enable the multiple file selection option).
Other than this I cannot do more.

Hello. I used the demo of your plugin and liked it. I have one question before I buy it. Are the file attachments available in the WC_Order class or other metadata?

$order = wc_get_order( $order_id );
$order_meta = get_post_meta($order_id);
Hello,
uploaded file metadata are stored as serialized array in an order metadata called “_wcuf_uploaded_files”.

the serialized array has the following structure:
array(2) {
  ["21-9"]=>
  array(11) {
    ["absolute_path"]=>
    array(2) {
      [0]=>
      string(44) "dropbox:/site-name/54/79652_test2.pdf" 
      [1]=>
      string(44) "dropbox:/site-name/54/21145_test3.jpg" 
    }
    ["url"]=>
    array(2) {
      [0]=>
      string(96) "http://sito.com/demo?dropbox_get_item_link=%2Fwoocommerce-demo%2F54%2F79652_test2.pdf" 
      [1]=>
      string(96) "http://sito.com/demo?dropbox_get_item_link=%2Fwoocommerce-demo%2F54%2F21145_test3.jpg" 
    }
    ["original_filename"]=>
    array(2) {
      [0]=>
      string(15) "79652_test2.pdf" 
      [1]=>
      string(15) "21145_test3.jpg" 
    }
    ["source"]=>
    array(2) {
      [0]=>
      string(7) "dropbox" 
      [1]=>
      string(7) "dropbox" 
    }
    ["title"]=>
    string(23) "Upload test (Product 1)" 
    ["num_uploaded_files"]=>
    int(2)
    ["id"]=>
    string(4) "21-9" 
    ["user_feedback"]=>
    string(0) "" 
    ["ID3_info"]=>
    string(4) "none" 
    ["quantity"]=>
    array(2) {
      [0]=>
      string(1) "1" 
      [1]=>
      string(1) "1" 
    }
    ["is_multiple_file_upload"]=>
    bool(true)
  }
  ["24-9"]=>
  array(11) {
    ["absolute_path"]=>
    array(2) {
      [0]=>
      string(47) "dropbox:/woocommerce-demo/54/img1.png" 
      [1]=>
      string(74) "dropbox:/woocommerce-demo/54/img2.jpg" 
    }
    ["url"]=>
    array(2) {
      [0]=>
      string(99) "http://sito.com/demo?dropbox_get_item_link=%2Fwoocommerce-demo%2F54%2img1.png" 
      [1]=>
      string(126) "http://sito.com/demo?dropbox_get_item_link=%2Fwoocommerce-demo%2F54%2img2.png" 
    }
    ["original_filename"]=>
    array(2) {
      [0]=>
      string(18) "23266_image.PNG" 
      [1]=>
      string(45) "86700_image.jpg" 
    }
    ["source"]=>
    array(2) {
      [0]=>
      string(7) "dropbox" 
      [1]=>
      string(7) "dropbox" 
    }
    ["title"]=>
    string(18) "Test 2 (Product 1)" 
    ["num_uploaded_files"]=>
    int(2)
    ["id"]=>
    string(4) "24-9" 
    ["user_feedback"]=>
    string(0) "" 
    ["ID3_info"]=>
    string(4) "none" 
    ["quantity"]=>
    array(2) {
      [0]=>
      string(1) "1" 
      [1]=>
      string(1) "1" 
    }
    ["is_multiple_file_upload"]=>
    bool(true)
  }

Hi Vanquish I am trying to configure the woo commerce upload plugin I purchased recently… I own a camera shop and I want to use woo commerce to print customers photos that they upload here is a link to the product page I’m working on ( http://donegalcameracentre.ie/?product=print_your_photos ) I found your demo page quite useful but I have a few questions .. Is the any way I can add a + and – tab beside quantity on product page..

’..Is the anyway I can set different levels for the pricing structure ! for example, if customer buys over 50 of a certain size prin thent the price will decrease! Thanks Mark

Hi,
this this special kind of purpose you could use the plugin in conjunction with this other plugin of mine: WoooCommerce Pricing!.

In the Upload Files plugin you could enable the Product cart quantity as number of uploaded files option you find in the general options menu. In this way the product cart quantity will be setted according the number of uploaded file and their quantity. Using the Pricing plugin you can create a pricing rule that will assign a price to the product according to cart quantity (the more the products are added the more the price drops).

If you are interested I can set setup a demo site where you can try both plugin together to see if the Pricing! plugin fits your needs. Send me a private message (click on my name then use the low-right box) reporting your email. I’ll send you the url of the private demo site!

Hi there, Seems this plugin does not work with WooCommerce Stripe Gateway. Fine when WooCommerce Stripe Gateway is disabled.

Error in console when WooCommerce Stripe Gateway is enabled.

WCUF managed a unhandled/uncaught error by 3rd party plugin. This may cause the WCUF plugin to not properly work wcuf-frontend-global-error-catcher.js:10 Error caught[via window.onerror]: Script error. wcuf-frontend-global-error-catcher.js:11 from: wcuf-frontend-global-error-catcher.js:12 line: 0

Any help would be great please.

Hi,
unfortunately it seems that that plugin is raising a javascript error that causes the WCUF js library to be not properly executed. So is that plugin developer that should fix that plugin, I cannot help you to fix a plugin that was not been designed by me.

However if you report attach a complete screenshot of the debug console I can see if I can help you to give more clues to report to that plugin developer.

ok – turns out that without a Publishable or Secret Key for Stripe something was failing, But wcuf was preventing the error message in the console to appear. So no problem – thanks a mill

You’re welcome :)

P. S.
If you have appreciated my support and/or my plugin please also consider leaving the 5 stars, I would really appreciate! :) (to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases)

Have a nice day!

Hi Plugin Author,

Can you help me with this error message?

Best MB

[WCUF] javascript libraries have not properly loaded due to 3rd party plugin interference. jquery.js:13:3 ReferenceError: wcuf_exists_at_least_one_upload_field_bounded_to_variations is not defined

jquery.js:3:1

Hi,
without any further clue it is quite hard to determine the cause. It seems that there are some 3rd party plugin that are including some javascript code that interferes with the WCUF javascript library load.

Could you try to disable all your 3rd party plugins and report if you still experience the issue? if no, try enabling one by one until you find the one interfering. Once done report to its developer.

Hi,

the preview shows no image. Screenshot: https://image.ibb.co/mfF5Gw/wp_plugin_upload.png Tested with PHP Version: 5.6, 7.0, 7.1 (with php-gd), Wordpress 4.9.2

A file was uploaded in /wcuf/tmp order. thank you for help.

Unfortuantely it seems that you server is not able to create the preview image for uploaded files. The plugins use the following PHP function to create image preview:
  1. imagecreatefromjpeg
  2. imagejpeg
I can only advice to investigate with your server provider that those function are can be properly executed.

If you send me via private message (click on my name and then use the low-right box) with the following:
  1. you email address
  2. Full admin access to the wp-admin area
  3. a FTP access
  4. a link to the page where I can experience the issue

I can try to see if it possible to get some more clues about the server issue to report to your maintainer.

Hello Domenico.

I noticed that Wcuf is causing issues on 2 of my sites again. This time, its causing a performance drop across the whole site, even on pages that dont have anything to do with wcuf.

I already spoke to my hosting company support team and they asked me to share this screenshot with you.

https://mananys.com/wp-content/uploads/2018/01/1__pod-120178__ssh__and__2__Chats.png

They say that the admin ajax is getting lots of calls and are taking longer than 60 seconds so they are being killed.

Here’s a link to the production error logs: https://mananys.com/wp-content/uploads/2018/01/mananys_error_logs-2018-01-23_15-47-30.txt

As you can see, there a LOTS of Killed queries.

I have the newer version of the plugin (30.4) and im still experiencing the issue.

Right now, the plugin is disabled on my site, and right after i disabled it i noticed a huge improvement in the performance of the whole site.

Please let me know if you need any more information to troubleshoot this.

Unfortuantely it is related to a server issue more than a plugin issue.
For what concerns the 504 error it is a Gatway timeout error. It means that your server is not able to provide that file. Your hosting maintainer should investigate why the server is not able to server that file.

For what concerns the error log, as you can see from it all those killed query are generated by plugins/divi-bars/includes/class.divi-bars.admin.controller.php script. It is part of the divi-bars plugin. I don’t see any trace of the upload-files plugin.
So for this you should contact that plugin developer

However reading the kill error message it seems that you are using a not very powerful hosting. Is it a standard shared web hosting service?

If so I would advice to switch to a more powerful solution. Note that not all software can be runned using low-resource web hosting.

Hello.

Ok, now i understand that i have another problem with the divi-bars plugin. Ill take care of that with the developers of that plugin.

But for the 504 error. I talked with my Hosting providers, and the problem is not that it’s a weak server. The problem is that they have a 60s Kill script policy. This means that all scripts are killed if they take more than 60s, with the intentions to preserve resources. And this “kill script policy” is present in every single plan of my hosting provider.

My hosting provier is WPengine (https://wpengine.com/) and is by no means a bad hosting company. In fact, i found it to be the best option for my needs. And they are actually hosting some very big sites like Underarmour, Pingdom, National Geographic, and others.

So, i want to understand if this plugin is ever gonna work on my hosting enviroment. Is there anything we can do to fix this? Why is this particular script taking so long to run?

Please let me know if you need any more info to troubleshoot, and thanks for the reply.

I’ve performed several other support session on wpengine hosting and no other user reported such an issue, so I’m not able to tell you how to workaround that server issue.

However this 60 kill script policy sounds very strange. As you can see by editing any of the scripts that is killed by your provider, for example the wcuf-frontend-common.css.php you find inside the css folder inside the plugin folder, it is just a php script that takes parameters via GET, echoes values and so rendering a normal CSS file. There isn’t any particular computation that may consume too much server resources. So it doesn’t make any sense that your server only for those simple scripts takes more than 60 second to execute. There are many other scripts that are part of the plugin that are more resource consuming.

So most likely the issue could rely on the fact that maybe the server is not properly configured to properly process an high number of GET parameters. Try contacting your server maintainer asking if this could be possible and in case to fix it. Other thant this I’m not able to suggest anything.

Ciao, ho visto il tuo plugin in azione sul sito di un mio collega fotografo. Avrei intenzione di acquistarlo anch’io ma ho notato che sul sito del mio collega non è possibile fare l’upload di più di 40 files e non oltre i 100 mb complessivi. Il php.ini sul server che ospita il suo sito è configurato con questi limiti. Pertnato quando tu dici che è possible fare l’upload di un numero “illimitato” di files ovviamente sottointendi a meno di limiti del server… oppure il plugin riesce a raggirare i limiti? Grazie

Ciao,
nelle ultime versione del plugin ho implementato una nuova funzione “chunk by chunk” che gestisce l’upload dei file che permette di caricare qualsiasi tipo di file indipendentemente dalla dimensione. Inoltre ora è anche possibile caricare un numero illimitato di files senza particolari configurazioni del php.ini

Effettua pure tutti i test che reputi opportuni mediante il sito demo!
http://www.codecanyon.eu/wcuf/wp-admin/
user: demo
pass: demo

In caso ti sevissero altre informazioni, chiedi pure :)

Grazie. Per la risposta. Giusto una precisazione. Le limitazioni riguardano nello specifico il post_max_size=100 impostato sul php.ini del lato server del provider Aruba. Ora quando io cerco ad esempio di fare l’upload di 100 foto che pesano circa 500 MB, il tuo plugin mi da errore. E mi da errore anche perché il numero massimo di file caricabili in un post è 40 ( sempre dovuto alla limitazione sul PHP ini). N. B. Tra l’altro aruba non permette modifiche del file php.ini su server condivisi. Ciao.

Ciao,
in che senso il mio plugin ti da errore? Esattamente, dove hai testato il plugin?
Come ti dicevo nelle nuove versioni del plugin, i file vengono caricati “chunk by chunk” (cioè viene diviso in piccoli segmenti, caricati in maniera sequenziale e ricostruiti lato server). In questo modo si aggirano le restrizioni che hai citato.

Esattamente dove hai provato il mio plugin? perchè nel sito demo appunto no riscontro tale problematica,

Hİ why it is not working in mobile phone

Because most likely the browser you are using are not fully html5 compliant.

Hi, I have three upload fields that are showing all on their own row. I would like if possible that they are beside each other instead.

I have Yes selected to “Display multiple upload fields per row” in the options but it doesn’t change anything. I’ve tried changing all the widths and stuff and nothing is working. Is there something else I have to have enabled?

Other than this it’s fantastic so far.

Thank you got it, I’ll answer via email.

Thank you got it, I’ll answer via email.

Thank you got it, I’ll answer via email.

Hi, How do I add to cart the same product the second time with a different file to be uploaded. Example if I add to cart 1000 business cards for my self with a file uploaded with my details and then I add to cart 1000 business cards again for my colleague with his details. When I view the cart, it shows the sub total payment for both items. However, it only shows the last uploaded files that was added to the cart. You can test it with the following product, select the same variations for both products that you add to cart:

https://tinyurl.com/ybkgxu3n

Thanks

Hi,
to do that, use the Products addable multiple times to cart menu voice. Enable that option for every product in your store or enable just for the product you need that feature. :)

Hi, is possible to setup feedback field editable after file upload?

Thank you!

Hi,
no unfortunately it is not possible :(

338/5000 Best,

We would like to work with your cart-to-quote system and upload system.

We wonder if the upload also works when requesting quotes. Our customers should be able to send their plan (pdf) with their request for quotation.

Or are there other possibilities for this?

thanks in advance

Best regards

Desmettre Stijn

Hi,
to which my cart-to-quote system are you referring?

A possible solution could be to create a product (optionally free) called “quotation” to which bound an upload field with the Feedback input text eventually enabled.

In this way your user will be able to submit the file (with an optional text) and keep tracking of the quotation status via the order details page.

No unfortunately my plugin hasn’t any support for that one and I don’t think that one has any for mine.

Hi again,

website: www.uebrasil.org.br/checkout/?add-to-cart=206

I’ve inserted some html in the upload file description to make an accordion:

(div class=”accordion” rel=”“)
(div class=”accordion-item”)
(a class=”accordion-title plain” href=”#”)
(button class=”toggle”)
( i class=”icon-angle-down”) (/i)
( /button)
(spam)Instruções para envio: (/spam)
( /a)
(div class=”accordion-inner”)
(p align=”justify”) (b) Recomendações para o envio da sua foto:(/b)
– Foto 3×4 digitalizada, recente e de boa qualidade
– Arquivo no formato JPG, JPEG ou PNG
– Fundo neutro no mesmo padrão de documentos oficiais
– Foto bem iluminada, nítida e sem sombras
– Não serão aceitas fotos que impeçam a sua identificação, como bonés
óculos escuros, cabelo tampando o rosto e outros
(/div)
(/div)
(/div)

when you first load the page, it works fine, however once I upload the file when I click again to toggle(open) the description stead of showing the div it submits the checkout page.

If I take off the html code it works fine, but I want the file upload field cleaner.

Can you help me please?

I changed the html tags to ( ) then you can see it in this post

thanks

The plugin by default is not performin any manipulation on the image, so there isn’t much to fix. It just displays it as it is passed by the browser. More in details: when you hit the browse button the browser take controls letting you selecting the image and then passing it to the html page that displays the selection. Html controllers are managed by the browser. Once you hit the save button, images are stored into the server as they are without manipulating them.

It seems that the issue you are suffering is more photo codification issue or browser issue.

I’ve just performed several tests on Chrome for Android and this issue never rised. What I can suggest is to use photo with well encoded EXIF tags and a fully html5 browser compliant (like Chrome).

Very technical answer but it doesn’t match the reality I’m facing. I’m using an iphone 6s running Chrome’s last version and Safari and the customer have a Samsumg also running Chrome’s last version and both are facing the same issue. I’m curious to know with other customers from here if they have the same issue. It’s very sad because there’s an issue which needs to be solved then both parts are happy you and your customer (me).

Could you provide more detailed explanation on what do you mean about the technical expanation doesn’t match the issue you are experiencing? Can you then report me on which cause relies the issue you are experiencing?

For now no other user reported such an “issue” and I cannot implement any fix how the browser handles the image or to avoid iOs to decode in a different way orientation on image EXIF (there are several articles about the “strange” image orientation used by apple that cause this kind of issue: https://stackoverflow.com/questions/10600613/ios-image-orientation-has-strange-behavior )

Note that actually this is not a plugin “issue”. The plugin is designed to upload files as they are without further manipulation. If you are not using the crop editor to manipulate the image, the plugin is not designed (and never reported this feature in its desciption page) to automatically recognize if a choosen file is an image and them eventually “fix” orientation if it is not 0 degrees.

Hi, I hope you could help me. Since few weeks I have an issue by generating PDF invoices in Woocommerce. I am using WooCommerce PDF invoice plugin. I’ve enabled the debug mode and got this error:

Error message detected – PDF file generation aborted.

session_destroy(): Trying to destroy uninitialized session File: /web/1/000/058/849/238925/htdocs/wordpress/wp-content/plugins/woocommerce-upload-files/classes/com/WCUF_Session.php Line: 57

Could you please help with this?

Thank you in advance!

Kind Regards, Denis

Hi Denis,
can you send me a private message (click on my name then use the low-right box) reporting your email? I’ve a new version to test that should fix that issue! Thank you :)

Hello, I currently have two problems with WUF 1. after getting confused by the many options, I wanted to start all over again. I deactivated and deleted the plugin. I deleted the WUF folder by FTP. After the new installation I can’t connect WUF with the products anymore. 2. it is not possible to enter anything in the additional optional text field

That’s the “issue”. If you want the field to be visible you can leave unchecked all roles and you have not to select any payment gateway. As reported in that option description, if you select any gatway option the field will be visible only in checkout and order details page

you recommended to me to enable any role per visibility option or gatway visibility option… that´s what I did. I changed it back and leave all boxes unchecked as recommended in the manual. Anyway…dis- or enable the roles doesn’t change anything. There is no WCUF visible on the product-page.

Thank you for your patience

Unfortunately without any further clue it is quite impossible to understand why you suddenly experienced this issue. It could be due to a misconfuration, 3rd party plugin interference or several other causes.

Last test you can perform is to try disabling all your 3rd party plugin to see if you still experience the issue. If not, try re-enable one by one until you find the one interfering and report to its developer to fix it.

If no plugin is interfering, I need you send me via private message (click on my name and then use the low-right box) with the following:
  1. you email address
  2. Full admin access to the wp-admin area
  3. a FTP access
  4. a link to the page where you are experiencing the issue
I’ll perform some tets to see if it possible to figure out the cause of the issue.

Just installed the plugin at inteligent.co.uk When I used the configurator I get a popup warning Can I send you screenshots?

Looking through some of your support requests I think you need to produce a video showing people how to configure your plugin.

Hi,
thank you for your suggestion, A tutorial video actually would be very useful.

For what concerns screenshot, send me a private message (click on my name then use the low-right box) with your email address. I’ll reply with mine where you can send the screenshots.

Hello,

Where can I change the text of f.e. the showing text “Min width” or “Min height”. Most of the texts I could change in the Options, but I cannot find following:

Min width Min height Rotate left Rotate right Loading, please wait until uploading is complete… Uploaded files:

Hope for your help!

And one more problem:

Showing the “Upload file” field in products page doesn’t work if I only let it show on specific product variables. What can I do?

Greets

Hi,
is the latest 30.1 version? you should see those fields in the Texts menu: https://www.dropbox.com/s/cojfd52kmi6vxlp/wcuf_options.jpg?dl=0

After deleting cache I see them. Thanks a lot! :-)

You’re welcome :)

If you have enjoyed my support and/or my plugin please consider leaving the 5 stars, I would really really appreciate! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases)

Have a nice day! :)

Can’t activate plugin due to following error – Parse error: syntax error, unexpected ‘[’ in /home/sites/tigerink.co.uk/public_html/wp-content/plugins/woocommerce-upload-files/classes/com/WCUF_DropBox.php on line 31

Hi,
This error is due the usage of an outdated version of PHP. Note that Wordpress and WCUF plugin (as reported in the description page) both require a minimum 5.5 version.
Could you confirm that you are using at least that version? to check go to WooCommerce -> System status.
If not please update and that error will be gone.

Updating php is usually a very simple operation in any web shared server. Go to the admin panel, search for some kind of advanced configuration and in that section you can switch the php version to the latest.

Thank you for prompt reply. Switching to PHP version fixed it.

Glad to hear that :)
If you have enjoyed my support and/or my plugin please also consider leaving the 5 stars, I would really appreciate! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases)

Hello,

One more time, we have found errors in the code of your plugin. Look at these lines of code: http://prntscr.com/hru4yg in this file : http://prntscr.com/hru59m

Of course, we could fix it but it would be overwritten at next plugin’s update.

These lines of code cause errors in the console in wp-admin: https://i.imgur.com/vA0jjaX.pnghttps://i.imgur.com/XnlJ5ca.pnghttps://i.imgur.com/IJnFA3M.png

Becasue no other user reported such issue and I never experienced in my tests env or in other codecanyon users envs during the support sessions I performed in past years. Even in the demo site such issue is not raised both in frontend or wp-admin area.
This led to me to reasonably state that the issue affects just you.

Let’s be honest: nobody looks at the console in wp-admin. And I don’t think you did it too.

Feel free to see things as you whish.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey