XForms Tutorial > I-6.2.10. The upload Element

xforms:upload Element
 
local file 을 upload 하기 위한 컨트롤이다.
Common Attributes : Common, UI Common, Single Node Binding
Special Attributes : incremental, mediatype, filename
  • mediatype
  • 이 엘리먼트의 컨테이너는upload element로서 첨부 파일을 선택했을 때, 그 파일의 유형을 정의하고자 할 때 사용되는 Optional element이다.
  • filename
  • 이 엘리먼트의 컨테이너는upload element로서 첨부 파일을 선택하고자 할 때 그 위치와 정보를 지정하는 Optional element이다.
Sample. list datatypes의 예
…(생략)...
<upload ref="mail/attachment" mediatype="image/*">
  <label>Select image:</label>
  <filename ref="@filename" />
  <mediatype ref="@mediatype" />
</upload>

…(생략)... 

댓글 없음: