EllisLab text mark
Advanced Search
     
File Upload
Posted: 05 September 2007 10:56 AM   [ Ignore ]
Joined: 2007-09-02
8 posts

Having just got CI to work, I’ve run into another snag. Is it possible to insert a bunch of data from a form in a database, and in the same form, upload an image.

I’ve got my form inserting the data perfectly, but when I come to try and also upload a form it doesn’t seem to work.

I’ve gone through the File Uploads section on the user guide, but still having no luck.

Anyone any pointers?

 
Posted: 05 September 2007 11:20 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-06
33 posts

u should show a bit of your code, if you want some help smile

 
Posted: 05 September 2007 11:35 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2006-02-06
117 posts

Are you using

enctype="multipart/form-data" 

in your form tag?

 Signature 

My Blog, I work at Erskine Design

 
Posted: 05 September 2007 12:23 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2007-09-02
8 posts

Ah sorry, at work, so can’t post any code right now. Will when I get back home.

Hmm. I don’t think I did use that. Will give it a shot. Cheers.