Invalid form Submission in WordPress wp_handle_upload |
X

Congrats, You are Subscribed to Receive Updates.

Invalid form Submission in WordPress wp_handle_upload


Invalid form Submission in WordPress wp_handle_upload. Sometime, we face the issue of `Invalid form Submission` . I have a solution for the problem. It actually occurs when you pass single argument to the `wp_handle_upload`.  your code might be like the below one.

$file = wp_handle_upload($_FILES['upload_file']);

You have to add one more parameter with it.

$file = wp_handle_upload($_FILES['upload_file'],  array('test_form' => FALSE));

This one solves your problem .

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, PHP and Data Analyst. Database Management Advance Level

Comment Below

Your email address will not be published. Required fields are marked *

*

Current ye@r *

Menu

Sidebar