Add enctype='multipart/form-data' to forms for file upload support
This commit is contained in:
parent
9fb5066f9b
commit
4ed2f075a6
@ -64,8 +64,8 @@
|
||||
<h5 class="modal-title" id="editItemModalLabel">{{ trans('Edit Part') }}</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="editItemForm">
|
||||
<div class="modal-body">
|
||||
<form id="editItemForm" enctype="multipart/form-data">
|
||||
<input type="hidden" id="edit_item_id" name="id">
|
||||
<div class="mb-3">
|
||||
<label for="edit_item_name" class="form-label">{{ trans('Part Name') }}</label>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<form id="addItemForm">
|
||||
<form id="addItemForm" enctype="multipart/form-data">
|
||||
<input type="hidden" name="action" value="add_item">
|
||||
<div class="mb-3">
|
||||
<label for="item_name" class="form-label">{{ trans('Part Name') }}</label>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user