cancel
Showing results for 
Search instead for 
Did you mean: 

How to create file upload control in custom content model

alfresco_shaikh
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

sanket
Champ on-the-rise
Champ on-the-rise
One way is by associating file upload with the aspect (shown below).
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>

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.