国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Ajax-fetched page cannot use input type="file" tag?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-05-19 10:26:40
0
2
612

I get the form page through Ajax.
The following is the form code:

    <form  method="post" enctype="multipart/form-data" class="form-horizontal">
        <p class="form-group" style="margin-left:0px;">
            <label for="file">注:選擇頭像文件盡量小于2M</label>
            <input id="headPortraitFile" type="file" name="portrait"> 
        </p>
        <button id="headPortraitSubmit" type="button" class="btn-sm btn-primary">上傳頭像</button>
    </form>

But the input type="file" in this form cannot directly select the file in the browser, let alone submit the file. Do not know what is the reasons of that? I haven't been able to solve it in the past two days. Please ask for help! ! !

PHP中文網(wǎng)
PHP中文網(wǎng)

認證高級PHP講師

reply all(2)
洪濤

Hmm, I don’t see any problems with the form page. Is there something wrong with loading and rendering this code after getting it?

給我你的懷抱

I tried it, dynamically adding input can select files. How did you add it to the page?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template