We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Creating a file upload form in the Control Panel

Development and Programming

summitpr's avatar
summitpr
24 posts
16 years ago
summitpr's avatar summitpr

I am trying to create an extension that will be able to upload a file (CSV) and store it into a weblog. I have almost all of the form finished up but I cannot seem to add a file input to the form. If I just add the HTML to the $DSP->body it will show up but nothing shows up in the $_FILES array.

Is there anything I missed as far as Expression Engine functions that enable this type of functionality?

       
Punch Buggy Digital Agency's avatar
Punch Buggy Digital Agency
153 posts
16 years ago
Punch Buggy Digital Agency's avatar Punch Buggy Digital Agency

I don’t know whether you managed to solve this (you probably have by now!). But for anyone else looking for a solution to this as I was, here’s what worked for me:

Add the attribute enctype=”multipart/form-data” to you form declaration.

Hope this helps

Emily

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Also if you are doing this in the publish page then don’t forget the newly created Fieldframe and the excellent nGen File Field.

Best wishes,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.