我的插件需要用户上传文件。
清单字段未设置形式enctype =“multipart / form-data”,因此当文件上传时,它会丢失。
有没有办法改变这个?
答案 0 :(得分:0)
for xml :
Joomla File form field type in xml:
https://docs.joomla.org/File_form_field_type
<field name="myfilevalue" type="file" label="Enter some text" description="Choose an image from your computer with maximum 100KB" size="10" accept="image/*" />
OR
if your file field in html form then used :
<input type="file" name="jform[myfilevalue]" >
我希望它的帮助, 请提供更多说明