Bug 157507
| Summary: | input type=file dosen't work | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lynch <1032895055> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | aestes, ahmad.saleem792, bfulgham, cdumez |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 9.2 | ||
Lynch
code here:
<form id="imgForm" action="upload.php" method="post" enctype="multipart/form-data">
<div style="width: 100%; height: auto; text-align: center;" onchange="showTempImg()">
<div style="width: 100%; height: auto; text-align: center; top: 30px; position: relative; margin-top: 15px; font-size: 50px; font-weight: 700;">
<div id="upload-container" class="col-xs-12 text-center">
<input type="hidden" name="jixing" id="jixing" value="{$jixing}" />
<input type="hidden" name="agent" id="agent" value="{$agent}" />
<input type="hidden" name="imgname" id="imgname" value="" />
<input type="hidden" name="sex" id="sex" value="" />
<input type="hidden" name="randstr" id="randstr" value="" />
<a href="#" class="file a-upload">
<input type="file" name="file" id="file" accept="image/*" value="" />
</a>
</div>
</div>
</div>
</form>
I wrote this form, on IOS8, it can normal use, on IOS9, can call to the camera, but you can't upload pictures of
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
I changed the below test case from Comment 0 into following JSFiddle:
Link - https://jsfiddle.net/ja068ocz/show
I tried to upload a file from Photo Gallery using iPhone 13 Pro Max on iOS 15.6 and it works and it loads similarly to Safari 15.6 on macOS 12.5.
I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Please reopen if it is incorrect or this issue is still present. Thanks!