Ian Dunn

Ian Dunn

WordPress Developer

Menu

Skip to content
  • Home
  • About
  • Archives
  • Contact

Tag Archives: enctype

Uploading Files with Custom Post Types

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.

Posted on May 12, 2011 by Ian Dunn. Posted in WordPress | Tagged $_FILES, enctype, Plugin Development, Upload | Leave a comment

Subscribe via Email

Feeds & Profiles

  • RSS
  • WordPress.org
  • GitHub
  • HackerOne
  • LinkedIn