Fix the import form not working

When I tried to import a file, it says "No file selected". As I debugged and found that the form tag doesn't have the enctype attribute which requires to file handling.
This commit is contained in:
achinthas 2018-12-24 21:56:28 +05:30 committed by GitHub
parent 4ec8489105
commit 2dad984781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ class acf_admin_tools {
?>
<form method="post">
<form method="post" enctype="multipart/form-data">
<?php $tool->html(); ?>
<?php acf_nonce_input( $tool->name ); ?>
</form>
@ -351,4 +351,4 @@ function acf_get_admin_tool_url( $tool = '' ) {
}
?>
?>