Code

Discussion on WooCommerce Upload Files

Discussion on WooCommerce Upload Files

Cart 7,568 sales
Recently Updated

vanquish supports this item

Supported

4906 comments found.

Hello,

I have just purchased your plugin. Installed it, downloaded it, but when I try to activate it with the Item Purchase Code and Licensee info as found on the Envato Market License Certificate it says “Purchase code is invalid!”.

Please inform me on how to proceed.

Edit: the validation has been successful, seems like there was some delay for the key to become active. Sorry for jumping the gun!

No problem at all, glad it worked! :)

Hi,

I migrated my site from dev to production but I have problem with admin-ajax. I can’t add file, zero percent after click on “upload”. What should I do? I uninstalled plugin, edited database and js files there for a new url but even with that – I have old url for admin-ajax. I cleared cache, disabled it, etc.

Thanks in advance!

No, the plugin doesn’t store the value on the db. It dynamically generates by invoking the admin_url(‘admin-ajax.php’) function. The Js are cached by the plugin, but they are recreated when saving the options.

So if you just copy all the files from dev to production without saving new options, you might experience the issue you reported. If you are doing a clean installation, you cannot experience it.

What I can say is that maybe your server si performing some caching in some levels preventing the proper Js to be served. Is that possible you have cached the JS or your browser is still using old JS?

Thanks for help. I searched for it and this is a problem when maintenance mode is activated.

I have another question – I have variable product and I added 20-30 variations. When I purchase something, my file (link) name is: Title (first variation, second variation, third, etc). How to change it only for title? I tested few options and it doesn’t work.

Glad to hear that.

Regarding the name, the only option regarding that is this: https://ibb.co/BVNHKRy9

Hi, I purchased your module and installed it on to my website while in development. All worked fine. Then I updated website DNS records for production and it stopped working. Tried to reinstall the license (as the module mentions it includes 2 activations and reinstalling on the same website does not consume any activation).

But surprise, purchase code is invalid. Pls help!

Hi,
If you receive the message that the code is invalid, it seems there is an issue with the Envato validator. Usually depends on the usage of a browser that is not a fully HTML5 comliant browser.

If the issue still persists, if you send me via private message wp-admin acccess and FTP access, I can perform some further investigations.

Since the Search-Function is not that good, I need to create a comment..

Is it possible to delete files from an order via function that we can trigger in our system? We send out emails to the customers with a custom plugin and it would be awesome if we could add this function to “Delete the files from the order” whenever we send out a specific email.

thanks

Hi,
yes via PHP code, you can delete all the files associated with an order. If you renew your support license, I can report here which code you might use.

Did :) (Annoying that you can’t like subscribe and everything happens automatically…)

We author have been asking for a feature like this to Envato since forever, but it seems they are too busy working on AI tools negleting CodeCanyon and other markets.

In any case, thank you for your renewal and your support. You can try the following code:
global $wcuf_file_model;
$wcuf_file_model->delete_all_order_uploads($order_id);
where the $order_id is the id of the order.

Hi,

My plugin suddenly stopped working, and my purchase license are marked as not valid anymore.

What is the issue?

Thanks

Now it is being activated, but nothing happens. I am being sent back to the activation screen.

Unfortuantely without any further clues, it is quite hard to determine the cause.

Licenses are validated by the Envato system, not directly by the plugin. Try disabling the other plugins you are using; one of them might be interfering with the activation process.

If you renew your support license and share wp-admin, FTP access the license number via a private message, I can eventually perform some further investigation.

Hello,

I initially activated my license on a development (staging) domain. After moving the website to the live domain, the license stopped working and could not be unregistered from the development domain.

I then purchased a new license, but I am still receiving the error: “Purchase code is invalid.”

Please let me know why this is happening and how I can properly activate the license on the live domain.

Thank you.

Hi,
usually this issue happens when using a browser not fully HTML5-compliant. Please try using Chrome or Firefox. Try also disabling the other plugins; one of them might be interfering with the activation process.

If the issue still persists, if you share the wp-admin and FTP accesses, I can try performing some further investigations.

Hi:

I’m having this following issue: when the client upload a file into an order this file is upload to the temp folder at the local server as expected. When the order is processed the file are not moved to the order folder but disappear from the temp folder.

There is no info in the error log from WP.

Do you have any guidance to solve this issue?

Thank you very much!

Hi,
To ask for support, you need to use the account you used to purchase the plugin with a valid support license associated with it.

Hi,

are you planning to integrate the plugin with cart blocks and checkout page blocks in the near future? It is possible to use it with cart/checkout blocks? I only want to add a file on my product page, not in cart or checkout. I see that file is in temp but not in order after purchase.

Hi,
I’m sorry, for now there is no plan because unfortunately that kind of method doesn’t expose any filter/action as it happens for the templates.

Hello… I’m using version 88.0 with WP 6.8.2 and WooCommerce 10.1.2. I upload the files to the order and everything seems to be OK (the order finishes with success)... but the files didn’t upload to the WCUF folder. The order folder sometimes is created, sometimes not.

Can you help me please.

Hello,
To ask for support, you need to use the account you used to purchase the plugin. It must also have a valid support license associated with it.

gnaesch

gnaesch Purchased

Hello, i bought the Plugin years ago. It seems that my license code is invalid.

Hello,
Try using a fully HTML5-compliant browser like Chrome or Firefox to activate. Ensure also that none of the plugins you are using is interfering with the activation process.

Hello,

I’m having an issue activating a recent license.

I’ve confirmed the username and purchase code but continue to receive “Purchase code is invalid!”

Thank you for your help!

Hello,
Please try using a fully HTML5 compliant browser like Chrome or Firefox. Ensure also that none of the 3rd party plugins you are using is interfering with the activation process.

If none of the above helped, if you send me FTP and wp-admin accesses via private message, I can perform some further analysis.

I am using Chrome and I can also test deactivating other plugins.

I am trying to activate on a local install with a custom domain, Could that be causing issues?

I also do not see an option for private message. How do I do that? I can send you more details.

Thank you!

Yes, it could be. To send a message, click on my name, then use the lower-right box.

Hello,

I am experiencing an issue with WooCommerce Upload Files when using Dropbox as the cloud storage provider.

Issue description:

A customer uploads a file successfully.

The upload is correctly shown in the Orders list and in Dropbox.

The order status is Processing.

As soon as I open the order in the admin panel, the uploaded files are automatically deleted.

In Dropbox activity, deletions are logged as “You deleted …”.

This behavior makes the plugin unusable, since files are deleted simply by opening an order.

Thank you in advance for your help.

Hello,
I’m sorry, but without any further clues, it is quite hard to determine the cause and suggest a solution.

Furthermore, the Dropbox management hasn’t changed, so if the same code was not working and now it is not, most likely it depends on a 3rd party interference.

Please renew your support license and enable the WordPress debug mode and debug log, and perform a test. See if the debug log reports any errors related to the file copy process.

Try also disabling all the other plugins to see if any are interfering.

Hello!

Thank you for the quick response

A conflict with WPML (Multilingual Plugin) caused the issue.

WPML was removing the order meta where uploaded file references are stored when opening the order in the admin.

Thank you!

I’m glad you found the cause of the issue! Thank you also for reporting the result of your investigation; it might help other users. Have a great day!

Hello. I have problems with the plugin. My colleagues and I have purchased this plugin from you more than once (it was needed for several websites), but this time I encountered a problem that I think may be related to sessions. Files are not transferred from temporary memory to a permanent folder, so after forming an order and making a test payment, the order is formed without files. When checking via FTP, I noticed that even folders with order IDs are not created. Everything is fine in the FTP system with “Chmod” rights. In the plugin settings itself, it is set so that files are saved after forming an order and not after payment. But this does not help. I also tried to enable that function in the settings, for alternative session management, but it did not help either. I had to disable several other plugins and test, but this did not solve anything. I also thought that maybe the theme used was affecting it, so I had switched to the standard theme, I checked and the problem still persists.

Yes, it is compatible. The strange thing is that it is the same mechanism (a simple call to the PHP rename() function) is used to create the tmp files that you see via FTP.

If you try to create a script in PHP that simply creates folders and moves files (even empty ones) into a test folder like uploads/wcuf/123213, is it working? You can try to run those kinds of tests to see which result you get.

You can also try to print debug text into the debug.log (you can use the wcuf_write_log() function) before and after line 880 on the WCUF_File.php, located in the classes\com folder, to have more clues which call is specifically failing

Thanks for the advice. I will try to figure out this situation. Because before, on other websites using your plugin, such problems have never occurred. If nothing can be solved, then I will write here again.

I have confirmed that: PHP permissions and rename() work correctly (manual test OK). Files are uploaded and remain in wp-content/uploads/wcuf/tmp. WooCommerce orders are created successfully.

However, WCUF never attaches files to orders and never moves them to the final order folder.

Disabling LiteSpeed Cache, checkout field editor, shipping plugins, and Under Construction does not change the behavior.

This suggests that WCUF fails during the “attach uploaded files to order” finalization step in checkout. Could you please advise which hook/event WCUF relies on to finalize uploads and whether this is compatible with modern WooCommerce checkout flows?

Hi i am getting Purchase code is invalid! Can you help ?

Hi, please ensure you are using a fully HTML5 compliant browser like chrome or Firefox.

Yes i am, i tried both chrome and firefox latest

Also sent you private message to help us activate thanks

All of our files stored on dropbox no longer download from the link in the order, we are getting download.htm files instead. Looking for a way to return to previous functionality.

Thanks

From my tests, all seems ok. Dropbox API and links work as they have always done. Try regenerating a new Dropbox API key and ensure there an no issues with your account (for example, exceeded quota issues).

Hello

​I am encountering a critical issue on the payment page related to large files. ​I successfully upload approximately 300 images for a single order. However, when I click the final “Submit Order” button, the page loader spins for an extended period, and I eventually receive a 504 Gateway Timeout error.

​This suggests that the server is timing out while trying to process the large amount of data associated with the 300 images during the transaction initiation.

​My questions are: ​Has your team encountered this specific issue (504 error on checkout with a high number of images) before?

​Do you have any recommendations for resolving this timeout, such as server configuration adjustments (e.g., increasing post_max_size or max_execution_time) or known workarounds?

​Thank you!

Hi,
I’m sorry, but for now, no other user reported such an issue. If you have enabled the option to store files on a Cloud service, it could be that the file move or copy to the destination service is taking to much, leading the script managing the communication to be killed by the server.

In case you are using local file storage, it would be very strange.

Without any further clue, I’d suggest increasing the max_execution_time ( post_max_size won’t affect anything). Try also enabling the WordPress debug mode and debug log, and see if in the debug.log (located in the wp-content folder) and especially in the main server_log are reported more clues when performing these kinds of actions.

Can I ask for help? Unfortunately, the plugin won’t upload *.cdr, *.ai, or *.eps files to the order, even though these settings are set as allowed for upload. Where should I configure this so that these files can be uploaded with the placed order?

Hi,
The plugin prevents files for which the MIME type is not allowed by WordPress. Try using any 3rd party script to add the file extension and mime type specific to the file you wish to upload (for example: https://wordpress.org/plugins/wp-add-mime-types/ ), and you should be good.

Hi, the WCUF plugin is working, but looking VERY different (broken) after a recent WC update(?). I can provide a screenshot of my upload area on the front end if necessary.

Hi, are you sure it is not a cache issue? Or any other plugin that is crashing, preventing the page from being properly rendered?

Please also try giving a look at the browser error console and enabling the WordPress debug mode and debug log, and see if in the debug.log (wp-content) are also reported any reference to crashing scripts that are part of the plugin.

Please try also recreating the issue on this site that runs the latest version of WC and WP: https://codecanyondemo.work/wcuf/ (user: demo, pass: demo) so I can perform some further investigation. Thank you.

Hi there,

is there a hook in the plugin which we could hijac to change the order status if a customer uploads a new document? like current workflow: Customer orders -> we send out an email and set the status to “clarification” -> Customer uploads new files …. (here it should be automatically set to “processing”) which we would need a hook for to hijac the function ^^

Thanks

Hi,
Please note that for that already exists an option: https://ibb.co/qY3zJnff

Hi there! Our key is currently linked to the developer website and we need it moved to our actual website dearlybeeloved.com. How can we get this done? Thanks! Amanda

Hi Amanda,
The license allows you to activate the product in two distinct domains. If you need to activate the software on the production site after testing it on the staging site, there is no problem. Just activate it.

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