• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
山城小跳
博客园    首页    新随笔    联系   管理    订阅  订阅

如何限制文件上传的格式

                    <tr class="rile">

                        <input type="hidden" name="id" readonly value="${one.saleCommodityId}">

                        <td class="title" ><label class="control-label">派工单</label></td>
                        <td  colspan="6">
                            <div class="btn btn-default"style="position: relative; overflow: hidden;width: 100%;margin-top: -6px;">
                                <i class="glyphicon glyphicon-open"  onchange="uploadImg()"></i> 上传派工单
                                <input type="file" name="file" id="tupianfile" style="opacity: 0; position: absolute;
							 top: 12px; right: 0; " class='inpu' multiple="multiple" accept="image/*" onchange="uploadImg()">
                            </div>
                        </td>
                    </tr>

                    <tr class="fo">
                        <td colspan="14" style="text-align: right">


                            <input class="btn btn-primary" id="save" type="submit" value="保存"  />

                            <input class="btn btn-default" id="cancel" type="button" value="取消"
                                   onclick="window.history.back();" />
                        </td>
                    </tr>
                </table>
            </div>

        </form>
</div>

页面显示:


参考地址:https://www.cnblogs.com/yingzi1028/p/8625174.html

posted @ 2022-01-18 14:20  字母一哥  阅读(74)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3