亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rfc1867.txt

?? 使用jsp上載文件的例子
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
Network Working Group                                           E. Nebel
Request For Comments: 1867                                   L. Masinter
Category: Experimental                                 Xerox Corporation
                                                           November 1995

                     Form-based File Upload in HTML

Status of this Memo

   This memo defines an Experimental Protocol for the Internet
   community.  This memo does not specify an Internet standard of any
   kind.  Discussion and suggestions for improvement are requested.
   Distribution of this memo is unlimited.

1. Abstract

   Currently, HTML forms allow the producer of the form to request
   information from the user reading the form.  These forms have proven
   useful in a wide variety of applications in which input from the user
   is necessary.  However, this capability is limited because HTML forms
   don't provide a way to ask the user to submit files of data.  Service
   providers who need to get files from the user have had to implement
   custom user applications.  (Examples of these custom browsers have
   appeared on the www-talk mailing list.)  Since file-upload is a
   feature that will benefit many applications, this proposes an
   extension to HTML to allow information providers to express file
   upload requests uniformly, and a MIME compatible representation for
   file upload responses.  This also includes a description of a
   backward compatibility strategy that allows new servers to interact
   with the current HTML user agents.

   The proposal is independent of which version of HTML it becomes a
   part.

2.  HTML forms with file submission

   The current HTML specification defines eight possible values for the
   attribute TYPE of an INPUT element: CHECKBOX, HIDDEN, IMAGE,
   PASSWORD, RADIO, RESET, SUBMIT, TEXT.

   In addition, it defines the default ENCTYPE attribute of the FORM
   element using the POST METHOD to have the default value
   "application/x-www-form-urlencoded".

   This proposal makes two changes to HTML:

   1) Add a FILE option for the TYPE attribute of INPUT.
   2) Allow an ACCEPT attribute for INPUT tag, which is a list of
      media types or type patterns allowed for the input.

   In addition, it defines a new MIME media type, multipart/form-data,
   and specifies the behavior of HTML user agents when interpreting a
   form with ENCTYPE="multipart/form-data" and/or <INPUT type="file">
   tags.

   These changes might be considered independently, but are all
   necessary for reasonable file upload.

   The author of an HTML form who wants to request one or more files
   from a user would write (for example):

    <FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST>

    File to process: <INPUT NAME="userfile1" TYPE="file">

    <INPUT TYPE="submit" VALUE="Send File">

    </FORM>

   The change to the HTML DTD is to add one item to the entity
   "InputType". In addition, it is proposed that the INPUT tag have an
   ACCEPT attribute, which is a list of comma-separated media types.

  ... (other elements) ...

  <!ENTITY % InputType "(TEXT | PASSWORD | CHECKBOX |
                         RADIO | SUBMIT | RESET |
                         IMAGE | HIDDEN | FILE )">
  <!ELEMENT INPUT - 0 EMPTY>
  <!ATTLIST INPUT
          TYPE %InputType TEXT
          NAME CDATA #IMPLIED  -- required for all but submit and reset
          VALUE CDATA #IMPLIED
          SRC %URI #IMPLIED  -- for image inputs --
          CHECKED (CHECKED) #IMPLIED
          SIZE CDATA #IMPLIED  --like NUMBERS,
                                  but delimited with comma, not space
          MAXLENGTH NUMBER #IMPLIED
          ALIGN (top|middle|bottom) #IMPLIED
          ACCEPT CDATA #IMPLIED --list of content types
          >

  ... (other elements) ...

3.  Suggested implementation

   While user agents that interpret HTML have wide leeway to choose the
   most appropriate mechanism for their context, this section suggests
   how one class of user agent, WWW browsers, might implement file
   upload.

3.1 Display of FILE widget

   When a INPUT tag of type FILE is encountered, the browser might show
   a display of (previously selected) file names, and a "Browse" button
   or selection method. Selecting the "Browse" button would cause the
   browser to enter into a file selection mode appropriate for the
   platform. Window-based browsers might pop up a file selection window,
   for example. In such a file selection dialog, the user would have the
   option of replacing a current selection, adding a new file selection,
   etc. Browser implementors might choose let the list of file names be
   manually edited.

   If an ACCEPT attribute is present, the browser might constrain the
   file patterns prompted for to match those with the corresponding
   appropriate file extensions for the platform.

3.2 Action on submit

   When the user completes the form, and selects the SUBMIT element, the
   browser should send the form data and the content of the selected
   files.  The encoding type application/x-www-form-urlencoded is
   inefficient for sending large quantities of binary data or text
   containing non-ASCII characters.  Thus, a new media type,
   multipart/form-data, is proposed as a way of efficiently sending the
   values associated with a filled-out form from client to server.

3.3 use of multipart/form-data

   The definition of multipart/form-data is included in section 7.  A
   boundary is selected that does not occur in any of the data. (This
   selection is sometimes done probabilisticly.) Each field of the form
   is sent, in the order in which it occurs in the form, as a part of
   the multipart stream.  Each part identifies the INPUT name within the
   original HTML form. Each part should be labelled with an appropriate
   content-type if the media type is known (e.g., inferred from the file
   extension or operating system typing information) or as
   application/octet-stream.

   If multiple files are selected, they should be transferred together
   using the multipart/mixed format.

   While the HTTP protocol can transport arbitrary BINARY data, the
   default for mail transport (e.g., if the ACTION is a "mailto:" URL)
   is the 7BIT encoding.  The value supplied for a part may need to be
   encoded and the "content-transfer-encoding" header supplied if the
   value does not conform to the default encoding.  [See section 5 of
   RFC 1521 for more details.]

   The original local file name may be supplied as well, either as a
   'filename' parameter either of the 'content-disposition: form-data'
   header or in the case of multiple files in a 'content-disposition:
   file' header of the subpart. The client application should make best
   effort to supply the file name; if the file name of the client's
   operating system is not in US-ASCII, the file name might be
   approximated or encoded using the method of RFC 1522.  This is a
   convenience for those cases where, for example, the uploaded files
   might contain references to each other, e.g., a TeX file and its .sty
   auxiliary style description.

   On the server end, the ACTION might point to a HTTP URL that
   implements the forms action via CGI. In such a case, the CGI program
   would note that the content-type is multipart/form-data, parse the
   various fields (checking for validity, writing the file data to local
   files for subsequent processing, etc.).

3.4 Interpretation of other attributes

   The VALUE attribute might be used with <INPUT TYPE=file> tags for a
   default file name. This use is probably platform dependent.  It might
   be useful, however, in sequences of more than one transaction, e.g.,
   to avoid having the user prompted for the same file name over and
   over again.

   The SIZE attribute might be specified using SIZE=width,height, where
   width is some default for file name width, while height is the
   expected size showing the list of selected files.  For example, this
   would be useful for forms designers who expect to get several files
   and who would like to show a multiline file input field in the
   browser (with a "browse" button beside it, hopefully).  It would be
   useful to show a one line text field when no height is specified
   (when the forms designer expects one file, only) and to show a
   multiline text area with scrollbars when the height is greater than 1
   (when the forms designer expects multiple files).

4.  Backward compatibility issues

   While not necessary for successful adoption of an enhancement to the
   current WWW form mechanism, it is useful to also plan for a migration
   strategy: users with older browsers can still participate in file
   upload dialogs, using a helper application. Most current web browers,
   when given <INPUT TYPE=FILE>, will treat it as <INPUT TYPE=TEXT> and
   give the user a text box. The user can type in a file name into this
   text box. In addition, current browsers seem to ignore the ENCTYPE
   parameter in the <FORM> element, and always transmit the data as
   application/x-www-form-urlencoded.

   Thus, the server CGI might be written in a way that would note that
   the form data returned had content-type application/x-www-form-
   urlencoded instead of multipart/form-data, and know that the user was
   using a browser that didn't implement file upload.

   In this case, rather than replying with a "text/html" response, the
   CGI on the server could instead send back a data stream that a helper
   application might process instead; this would be a data stream of
   type "application/x-please-send-files", which contains:

   * The (fully qualified) URL to which the actual form data should
     be posted (terminated with CRLF)
   * The list of field names that were supposed to be file contents
     (space separated, terminated with CRLF)
   * The entire original application/x-www-form-urlencoded form data
     as originally sent from client to server.

   In this case, the browser needs to be configured to process
   application/x-please-send-files to launch a helper application.

   The helper would read the form data, note which fields contained
   'local file names' that needed to be replaced with their data
   content, might itself prompt the user for changing or adding to the
   list of files available, and then repackage the data & file contents
   in multipart/form-data for retransmission back to the server.

   The helper would generate the kind of data that a 'new' browser
   should actually have sent in the first place, with the intention that
   the URL to which it is sent corresponds to the original ACTION URL.
   The point of this is that the server can use the *same* CGI to
   implement the mechanism for dealing with both old and new browsers.

   The helper need not display the form data, but *should* ensure that
   the user actually be prompted about the suitability of sending the
   files requested (this is to avoid a security problem with malicious
   servers that ask for files that weren't actually promised by the

   user.) It would be useful if the status of the transfer of the files
   involved could be displayed.

5.  Other considerations

5.1 Compression, encryption

   This scheme doesn't address the possible compression of files.  After
   some consideration, it seemed that the optimization issues of file
   compression were too complex to try to automatically have browsers
   decide that files should be compressed.  Many link-layer transport
   mechanisms (e.g., high-speed modems) perform data compression over
   the link, and optimizing for compression at this layer might not be
   appropriate. It might be possible for browsers to optionally produce
   a content-transfer-encoding of x-compress for file data, and for
   servers to decompress the data before processing, if desired; this
   was left out of the proposal, however.

   Similarly, the proposal does not contain a mechanism for encryption
   of the data; this should be handled by whatever other mechanisms are

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡的av中国片| 日韩和欧美一区二区| 亚洲成人av资源| 91丨国产丨九色丨pron| 中文字幕免费观看一区| 精品午夜久久福利影院| 欧美电影影音先锋| 香蕉久久一区二区不卡无毒影院| 久久亚洲二区三区| 国产成人免费在线观看| 国产精品区一区二区三区| 成人国产亚洲欧美成人综合网| 性感美女久久精品| 亚洲精品老司机| 欧美日韩一区三区| 丝袜脚交一区二区| 亚洲精品国产视频| 国产精品丝袜91| 久久久久久久久伊人| 欧美一二三在线| 免费欧美在线视频| 精品播放一区二区| 成人免费视频视频在线观看免费| 亚洲少妇中出一区| 91视频在线观看免费| 不卡视频一二三| 国产福利精品一区| 国产精品一区二区久久精品爱涩 | 中文字幕一区二区在线播放| 91影视在线播放| 成人一级黄色片| 国产精品小仙女| 国产精品123| 国产老肥熟一区二区三区| 久久精品国产99国产精品| 国产日产欧美一区二区三区| 欧美性猛交一区二区三区精品 | 麻豆精品在线视频| 中文字幕在线视频一区| 欧美亚洲自拍偷拍| 色成人在线视频| 免费黄网站欧美| 婷婷丁香久久五月婷婷| 国产精品网站一区| 国产精品美女www爽爽爽| 久久成人av少妇免费| 亚洲第一福利视频在线| 亚洲电影中文字幕在线观看| 2020国产精品久久精品美国| 亚洲精品在线免费播放| 久久久精品欧美丰满| 国产日韩欧美综合一区| 国产清纯在线一区二区www| 日本一区二区三区视频视频| 国产日韩欧美精品综合| 国产精品私人影院| 夜夜嗨av一区二区三区中文字幕| 久久色中文字幕| 国产欧美一区二区精品忘忧草| 国产精品色在线| 亚洲欧美另类综合偷拍| 精品日韩在线观看| 欧美美女黄视频| 日韩一区二区三区视频在线| 久久婷婷国产综合国色天香| 国产精品国产三级国产a| 亚洲一卡二卡三卡四卡 | 欧美高清在线视频| 日韩伦理免费电影| 亚洲成人精品在线观看| 九九久久精品视频| 丰满放荡岳乱妇91ww| 激情六月婷婷综合| 美腿丝袜亚洲三区| 国产91精品入口| 在线观看日韩精品| 色久优优欧美色久优优| 91精品国产aⅴ一区二区| 91福利视频在线| 欧美成人官网二区| 成人免费在线视频观看| 婷婷丁香久久五月婷婷| 成人精品小蝌蚪| 欧美精品丝袜中出| 国产欧美精品一区二区三区四区 | 狠狠色狠狠色综合日日91app| 成+人+亚洲+综合天堂| 欧美日韩一级片在线观看| 国产亚洲一二三区| 国产女人aaa级久久久级| 亚洲v精品v日韩v欧美v专区| 懂色av中文一区二区三区| 欧美老年两性高潮| 中文字幕巨乱亚洲| 青青草国产成人99久久| 色综合久久中文字幕综合网| 91网页版在线| 精品国产欧美一区二区| 亚洲自拍偷拍麻豆| 粉嫩一区二区三区在线看| 欧美一卡2卡三卡4卡5免费| 亚洲同性gay激情无套| 精品亚洲成a人在线观看| 色婷婷国产精品| 国产精品色一区二区三区| 欧美a级一区二区| 欧美视频一区二区三区| 国产精品国产精品国产专区不蜜| 久久草av在线| 欧美狂野另类xxxxoooo| 亚洲美女电影在线| 成人夜色视频网站在线观看| 日韩欧美亚洲一区二区| 国产日本欧洲亚洲| 国产综合久久久久久鬼色| 制服视频三区第一页精品| 久久一区二区三区四区| 日韩黄色免费电影| 欧美日韩一级视频| 亚洲乱码国产乱码精品精的特点 | 午夜电影网一区| 色综合久久久网| 欧美韩国日本一区| 国产精品123| 久久久精品2019中文字幕之3| 蜜臀a∨国产成人精品| 欧美日韩不卡一区二区| 久久久久久免费网| 国产自产视频一区二区三区| 日韩一区二区三区三四区视频在线观看| 亚洲综合色视频| 在线观看网站黄不卡| 亚洲综合一区二区| 欧美亚洲国产一区二区三区va| 亚洲天天做日日做天天谢日日欢| 成年人国产精品| 日韩一区欧美小说| 一本色道a无线码一区v| 一区二区三区在线免费| 欧美在线视频日韩| 亚洲国产综合91精品麻豆| 欧美蜜桃一区二区三区| 五月天网站亚洲| 欧美一级片免费看| 久久福利视频一区二区| 26uuuu精品一区二区| 国产久卡久卡久卡久卡视频精品| 久久综合九色综合欧美就去吻| 国产丶欧美丶日本不卡视频| 中文字幕精品一区二区精品绿巨人| 成人av集中营| 亚洲精品视频一区二区| 欧美日韩在线播放三区四区| 日韩精品一区第一页| 欧美成人精精品一区二区频| 国产传媒日韩欧美成人| 亚洲视频小说图片| 欧美色成人综合| 久久69国产一区二区蜜臀| 久久久91精品国产一区二区精品| 成人一区二区三区视频在线观看| 亚洲美女电影在线| 日韩一级高清毛片| 国产激情一区二区三区四区| 中文字幕视频一区| 欧美日韩国产一级二级| 精品午夜久久福利影院| 亚洲同性gay激情无套| 欧美日本乱大交xxxxx| 国产精品一区二区无线| 综合久久国产九一剧情麻豆| 欧美日韩成人一区| 国产成人啪午夜精品网站男同| 亚洲欧美视频在线观看视频| 欧美精品一卡两卡| 成人亚洲一区二区一| 亚洲成人动漫一区| 国产欧美日韩卡一| 欧美区视频在线观看| 国产传媒日韩欧美成人| 亚洲制服丝袜av| 久久久久久久久蜜桃| 91国产丝袜在线播放| 国产一区二区三区黄视频 | 香蕉av福利精品导航| 久久综合999| 欧美影院精品一区| 国产美女久久久久| 亚洲一区二区三区在线看| 久久久久久久久久久久久女国产乱 | 亚洲香肠在线观看| 久久综合色8888| 欧美日韩五月天| 成人午夜激情片| 日韩高清一区二区| 日韩欧美一级片| 色综合视频在线观看| 久久99国产乱子伦精品免费| 亚洲一线二线三线视频| 国产日韩影视精品|