Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

TarikAli's avatar

enctype="multipart/form-data" sent form as get

Hello , i have a form with post method when i put this in the form

Route::post('update', 'SettingController@update')->name('admin.settings.update');

just when i put this enctype="multipart/form-data" in the form , the form send as GET and gives error that Get not supported for this route , but when i remove this enctype="multipart/form-data" every thing goes ok . thanks

0 likes
2 replies
MichalOravec's avatar

method="POST" is important, because default method is GET for form.

<form action="{{ route('admin.settings.update') }}" method="POST" enctype="multipart/form-data">
    @csrf
</form>
TarikAli's avatar

method="post" already set in my form . and every this goes right just if removed this property enctype="multipart/form-data"

Please or to participate in this conversation.