Lựa chọn file
C1: http://www.richardbutterworth.co.uk/blog/19-the-joomla-media-form-field
C2:
<field
name="yourfile"
type="filelist"
label="COM_EXAMPLE_FIELD_YOURFILE_LABEL"
description="COM_EXAMPLE_FIELD_YOURFILE_DESC"
directory="images/mail_attach"
hide_none="true"
<!--hide_default="true"
filter="\.pdf$"-->
/>
upload file trực tiếp
C3:https://docs.joomla.org/Creating_a_file_uploader_in_your_component
C4: http://stackoverflow.com/questions/15653414/file-upload-form-for-custom-joomla-component
Không có nhận xét nào :
Đăng nhận xét