adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

Setting enc type when opening forms #39

Closed muzzamilkhan closed 9 years ago

muzzamilkhan commented 9 years ago

Hi,

Is there a way to set enc/type for file uploads? Am i missing something?

adamwathan commented 9 years ago

Yes totally can! Should document this :/

// <form method="POST" action="" enctype="multipart/form-data">
BootForm::open()->multipart()

// <form method="POST" action="" enctype="custom">
BootForm::open()->encodingType("custom")

Sorry for not seeing this sooner, haven't been getting notifications on this repo for some reason :disappointed:

muzzamilkhan commented 9 years ago

Thanks so much!!

On Sun Feb 08 2015 at 3:26:06 AM Adam Wathan notifications@github.com wrote:

Yes totally can! Should document this :/

//

BootForm::open()->multipart()

// BootForm::open()->encodingType("custom")

— Reply to this email directly or view it on GitHub https://github.com/adamwathan/bootforms/issues/39#issuecomment-73373523.

troygilbert commented 9 years ago

This really needs to get put in the documentation. Spent 30 minutes trying to sort this out.

adamwathan commented 9 years ago

Added to the form package documentation here: https://github.com/adamwathan/form#opening-a-form

Not sure what the best way to document that BootForms has all the same methods as the Form package is. I've tried to make it pretty clear in the documentation, but maybe it's better to straight up duplicate it :/

troygilbert commented 9 years ago

Thought I had checked there, sorry. Would be nice if the API was actually itemized. With the examples I'm never quite sure if I'm seeing all the options and/or all their parameters. Thanks for following up!

adamwathan commented 9 years ago

You did check, it wasn't there until today ;) I just mean in general. I should probably just expand on the docs more, just don't want it to seem overwhelming for such a conceptually simple package, haha...

— Adam

On Sun, Mar 8, 2015 at 1:23 PM, Troy Gilbert notifications@github.com wrote:

Thought I had checked there, sorry. Would be nice if the API was actually itemized. With the examples I'm never quite sure if I'm seeing all the options and/or all their parameters. Thanks for following up!

Reply to this email directly or view it on GitHub: https://github.com/adamwathan/bootforms/issues/39#issuecomment-77762635

babacarcissedia commented 7 years ago

It took me 10 minutes to find out how to do it. man this really needs to be documented. Thanks for your job