简体   繁体   English

如何将文件上传器字段添加到Joomla管理组件?

[英]How to add file uploader field to Joomla admin component?

I made Joomla admin component according to Joomla guide - http://docs.joomla.org/Developing_a_Model-View-Controller_Component/2.5/Developing_a_Basic_Component 我根据Joomla指南制作了Joomla管理组件 - http://docs.joomla.org/Developing_a_Model-View-Controller_Component/2.5/Developing_a_Basic_Component

In administrator\\components\\com_invoicemanager\\models\\forms i have defined <field name="invoice" type="file"/> 在administrator \\ components \\ com_invoicemanager \\ models \\ forms中我定义了<field name="invoice" type="file"/>

Now I need to capture uploaded file and save it on the disk. 现在我需要捕获上传的文件并将其保存在磁盘上。

How to do it ? 怎么做 ?

Now how can i save it?

This is a bit vague. 这有点模糊。 You will need to provide more detail and possibly something you have already tried. 您需要提供更多详细信息以及可能已尝试过的内容。

You might also be interested in an SWFUpload Component 您可能也对SWFUpload组件感兴趣

It has been made very simple, to allow easy integration into other components. 它非常简单,可以轻松集成到其他组件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM