cancel
Showing results for 
Search instead for 
Did you mean: 

Upload File in custom model type

army81
Champ in-the-making
Champ in-the-making
I created a custom type in alfresco share and repository, I need to make the update a file during insertion of a document of this type in Alfresco Share.
3 REPLIES 3

vdewillem
Champ in-the-making
Champ in-the-making
I'm not sure if I understand you correctly. Do you want to change the document type to your custom type when uploading a document in Share?  If so, you can set a rule on a folder or configure the upload-module in Share (http://loftux.com/2010/03/22/set-the-document-type-on-file-upload/)

army81
Champ in-the-making
Champ in-the-making
Hi,
thanks for your answer, but I intendeve upload a file in the form of a custom model, for example:


<config evaluator="model-type" condition="mymodel:mydocument">
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" force="true" />
               <show id="mymodel:code" force="true" />
               <show id="mymodel:location" force="true" />
               <show id="cm:content" force="true" />

            </field-visibility>
            <appearance>
               
               <field id="cm:name" label-id="prop.name"  />
               <field id="mymodel:code" label-id="prop.code" />
               <field id="mymodel:location" mandatory="true" />
               <field id="cm:content" />

            </appearance>
         </form>

      </forms>
   </config>

vdewillem
Champ in-the-making
Champ in-the-making