If you’re building a custom post type and want to let the user upload files, you’ll need to add enctype=”multipart/form-data” to the form tag, using theĀ post_edit_form_tag filter. Otherwise the $_FILES array will be empty.
If you’re building a custom post type and want to let the user upload files, you’ll need to add enctype=”multipart/form-data” to the form tag, using theĀ post_edit_form_tag filter. Otherwise the $_FILES array will be empty.