<small id='4w0kf'></small><noframes id='4w0kf'>

    1. <tfoot id='4w0kf'></tfoot>

      <i id='4w0kf'><tr id='4w0kf'><dt id='4w0kf'><q id='4w0kf'><span id='4w0kf'><b id='4w0kf'><form id='4w0kf'><ins id='4w0kf'></ins><ul id='4w0kf'></ul><sub id='4w0kf'></sub></form><legend id='4w0kf'></legend><bdo id='4w0kf'><pre id='4w0kf'><center id='4w0kf'></center></pre></bdo></b><th id='4w0kf'></th></span></q></dt></tr></i><div id='4w0kf'><tfoot id='4w0kf'></tfoot><dl id='4w0kf'><fieldset id='4w0kf'></fieldset></dl></div>
        <bdo id='4w0kf'></bdo><ul id='4w0kf'></ul>
      <legend id='4w0kf'><style id='4w0kf'><dir id='4w0kf'><q id='4w0kf'></q></dir></style></legend>

    2. 如何为文件上传按钮设置值

      How to set a value for file upload button(如何为文件上传按钮设置值)
    3. <small id='Y2NuH'></small><noframes id='Y2NuH'>

      • <legend id='Y2NuH'><style id='Y2NuH'><dir id='Y2NuH'><q id='Y2NuH'></q></dir></style></legend>
          <bdo id='Y2NuH'></bdo><ul id='Y2NuH'></ul>

          <tfoot id='Y2NuH'></tfoot>

              <tbody id='Y2NuH'></tbody>

          1. <i id='Y2NuH'><tr id='Y2NuH'><dt id='Y2NuH'><q id='Y2NuH'><span id='Y2NuH'><b id='Y2NuH'><form id='Y2NuH'><ins id='Y2NuH'></ins><ul id='Y2NuH'></ul><sub id='Y2NuH'></sub></form><legend id='Y2NuH'></legend><bdo id='Y2NuH'><pre id='Y2NuH'><center id='Y2NuH'></center></pre></bdo></b><th id='Y2NuH'></th></span></q></dt></tr></i><div id='Y2NuH'><tfoot id='Y2NuH'></tfoot><dl id='Y2NuH'><fieldset id='Y2NuH'></fieldset></dl></div>

              1. 本文介绍了如何为文件上传按钮设置值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个应用程序,我们可以在其中选择图像并存储它,当用户需要更改图像的属性(如高度、宽度、图像)时,他将去编辑页面并对其进行编辑..但是,如果用户仅更改高度和宽度而不更改图像,则图像将不会显示,因为图像值不会为文件获取/设置...那么我们如何动态设置文件上传按钮的路径...

                I have an application where we can select image and store it and when user needs to change a properties of image like height,width,image he will go to edit page and he will edit it.. But when the user does not change image if he changes only height and width then the image will no display because the image value will not fetch/set for file... So how can we dynamically set path for a file upload button...

                推荐答案

                答案很简单;你不能.

                只需检查图像是否设置.如果是这样,请上传新图像.如果没有,请不要将图像替换为您已有的图像.这是一项安全措施,您不希望能够上传所选网站的文件.

                Just check whether the image is set. If so, upload the new image. If not, don't replace the image with the image you already have. This is a safety measure, you don't want to be able to upload a file of the websites choise.

                这篇关于如何为文件上传按钮设置值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                PHP Upload File Validation(PHP 上传文件验证)
                PHP Error - Uploading a file(PHP 错误 - 上传文件)
                How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)
                  <bdo id='pBaJf'></bdo><ul id='pBaJf'></ul>

                      <small id='pBaJf'></small><noframes id='pBaJf'>

                        <tbody id='pBaJf'></tbody>
                      <legend id='pBaJf'><style id='pBaJf'><dir id='pBaJf'><q id='pBaJf'></q></dir></style></legend>
                      • <i id='pBaJf'><tr id='pBaJf'><dt id='pBaJf'><q id='pBaJf'><span id='pBaJf'><b id='pBaJf'><form id='pBaJf'><ins id='pBaJf'></ins><ul id='pBaJf'></ul><sub id='pBaJf'></sub></form><legend id='pBaJf'></legend><bdo id='pBaJf'><pre id='pBaJf'><center id='pBaJf'></center></pre></bdo></b><th id='pBaJf'></th></span></q></dt></tr></i><div id='pBaJf'><tfoot id='pBaJf'></tfoot><dl id='pBaJf'><fieldset id='pBaJf'></fieldset></dl></div>

                          <tfoot id='pBaJf'></tfoot>