Form not passing data, PHP
I'm working a small management application and it requires us to to be able to upload images that are being trademarked, but in short I'm having problems retrieving the data to process it, after some debugging I've figure out that the form isn't passing any data to the $_FILES
superglobal, and I can't figure out why.
This is the relevant form code:
<form
action="/contracts/entity/save_entity/tra开发者_运维百科demark"
method="post"
enctype="multipart/form-data"
id="manage-entity-form"
>
<input
type="hidden"
id="MAX_FILE_SIZE"
name="MAX_FILE_SIZE"
value="102400000"
/>
<label for="file" class="">
<span class="ui-button-text">Image</span>
</label>
<input
type="file"
id="file"
class="ui-state-active"
name="data[Upload][]"
/>
</form>
The multipart/form-data encoding does not support multidimensional arrays - see this thread: How to upload files (multipart/form-data) with multidimensional POSTFIELDS using PHP and CURL?
精彩评论