How to create file upload control in custom content model
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2014 01:57 AM
Hi
I create custom model with some textboxes and drop down controls. But I want to create file upload control.How can i do this in alfresco 4.2.f?
can any one help me please?How can i create file upload in my custom content model??
Thanks in advance
I create custom model with some textboxes and drop down controls. But I want to create file upload control.How can i do this in alfresco 4.2.f?
can any one help me please?How can i create file upload in my custom content model??
Thanks in advance
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2014 06:42 AM
One way is by associating file upload with the aspect (shown below).
I am not sure, whether we can do it by other way.
I am not sure, whether we can do it by other way.
<aspect name="kb:ABC"><properties> <property name="…" /> <property name="…" /> <property name="…" /></properties><associations> <association name="kb:XYZ"> <title>Upload</title> <source> <mandatory>false</mandatory> <many>true</many> </source> <target> <class>cm:content</class> <mandatory>false</mandatory> <many>false</many> </target> </association></associations></aspect>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2014 07:25 AM
Thanks for reply
I tried with association. but using that I can't upload file from my machine.I can just give file path from alfresco dashlet.
I tried with association. but using that I can't upload file from my machine.I can just give file path from alfresco dashlet.
