John D Wells

I build websites with HTML, CSS, jQuery, PHP, ExpressionEngine & CodeIgniter.

Proud co-founder of the kick-ass, London-based creative agency One Darnley Road.

© johndwells

Simple SAEF Enctype

This super simple extension allows you to specify the enctype of SAEF forms to "multipart/form-data".
EE1 EE2

Out of the box, ExpressionEngine's SAEF (Stand-Alone Entry Form) opening tag does not give you the option of specifying an "enctype" so that you may upload a file with the form submission. This simple little add-on fills that gap.

After activating the extension, usage is a snap. Just begin your SAEF form like so:

{exp:weblog:entry_form
     weblog="your-weblog"
     return="/send/here/after"
     enctype="multi"
}

Installation

It's a snap: drop the file/folder into the appropriate directory (depending on EE1 or EE2), and activate the extension from within the CP.

Acknowledgements

The secret ingredient to this addon was taken directly from Leevi Graham's LG SAEF File Upload.

EE2 port is with mighty thanks to Carl W Crawley of Made By Hippo.

Version 0.0.2 (download), released January 23, 2011
  • EE2 port, by Carl Crawley of Made By Hippo