文档介绍::1867LMasinterCategory:ExperimentalXeroxCorporationNovember1995Form-munity・standardofanykind・・AbstractCurrently,HTMLformsallowtheproduceroftheformtorequestinformationfromtheuserreadingtheform・,thiscapabilityislimitedbecauseHTMLformsdon'tprovideawaytoasktheusertosubmit".(Examplesofthesecustombrowsershaveappearedonthewvw-talkmailinglist・)Sincefile-uploadisafeaturethatwillbenefitmanyapplications,thisproposesanextensiontoHTMLtoallowinformationproviderstoexpressfileuploadrequestsuniformly,patiblerepresentationforfileuploadresponses・patibilitystrategythatallowsnewserverstointeractwiththecurrentHTMLuseragents・:CHECKBOX,HIDDEN,IMAGE,PASSWORD,RADIO,RESET,SUBMIT,,itdefinesthedefaultENCTYPEattributeoftheFORMelementusingthePOSTMETHODtohavethedefauItvalue/zapp1ication/x-ded〃・ExperimentaiNebel&Masinter[Page1]RFC1867Form-basedFileUploadinHTMLNovember1995ThisproposalmakestwochangestoHTML:,whichisalistofmediatypesortypepatternsallowedfortheinput・Inaddition,itdefinesanewMIMEmediatype,multipart/form-data,andspecifiesthebehaviorofHTMLuseragentswheninterpretingaformwithENCTYPE二〃multipart/form-data"and/or<INPUTtype二〃file〃>,butareallnecessaryforreasonablefileupload・TheouthorofanHTMLformwhowantstorequestoneormorefilesfromauserwouldwrite(forexample):<FORMENCTYPE二〃multipart/form-data/zACTION二〃_URLMETHOD二POST〉Filetoprocess:<INPUTNAME二〃userfilel〃TYPE二〃file〃><INPUTTYPE二〃submit"VALUE二〃SendF订e〃></FORM>ThechangetotheHTMLDTDistoaddoneitemtotheentity〃InputType〃