cancel
Showing results for 
Search instead for 
Did you mean: 

Attach files to document

demotdi
Champ in-the-making
Champ in-the-making
Can we attach a file to a document in Alfresco share Community Edition? I only see "Upload files" but don't see an option to attach a file to a document(content).

Thanks for your help.
6 REPLIES 6

jpotts
World-Class Innovator
World-Class Innovator
In Alfresco, regardless of edition, by default each "node" has one "content stream". When you upload a file you are creating a node with an associated content stream in one step. We usually refer to the combined node and content stream loosely as a "document". There is no notion of "attach" in Alfresco. You can, however, relate documents with one another through an association. Out-of-the-box there is an aspect called "cm:referencing" that includes an association called "cm:references" that could be used for this, but it is not exposed to the user interface by default. You could do that through customization and then you'd be able to reference multiple documents from a given document. Does that meet your "attach" requirement?

Jeff

sulymankorj
Champ in-the-making
Champ in-the-making
Dear Jeff,

I am new on Alfresco ..
Can you explain me how I can do this I need add attach to file.

Regards

andy2_0
Champ in-the-making
Champ in-the-making
Hi Jeff

The "cm:referencing" aspect is also what I am looking for. However I just don't understand what the "Out-of-the-box" means. My original understanding is that the aspect has been implemented but not exposed to the end user. So I searched in tomcat/shared/classes/alfresco/extension folder and find nothing associated, I opened "share-config-custom.xml" file and can't find it as well. Would you please explain more on how to enable this aspect? Thanks a lot!


### share-config-custom.xml ###

      <aspects>
         <!– Aspects that a user can see –>
         <visible>
            <aspect name="cm:generalclassifiable" />
            <aspect name="cm:complianceable" />
            <aspect name="cm:dublincore" />
            <aspect name="cm:effectivity" />
            <aspect name="cm:summarizable" />
            <aspect name="cm:versionable" />
            <aspect name="cm:templatable" />
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="gd:googleEditable" />
            <aspect name="cm:geographic" />
            <aspect name="exif:exif" />
            <aspect name="audio:audio" />
            <aspect name="cm:indexControl" />
            <aspect name="dp:restrictable" />
         </visible>

         <!– Aspects that a user can add. Same as "visible" if left empty –>
         <addable>
         </addable>

         <!– Aspects that a user can remove. Same as "visible" if left empty –>
         <removeable>
         </removeable>
      </aspects>

mrogers
Star Contributor
Star Contributor
Also you can have more than one content property on a node.    However ther is a lot of functionality that assumes just the single property.

demotdi
Champ in-the-making
Champ in-the-making
Thanks Jeff. I think "cm:references" would meet my requirements. I will try that.

sulymankorj
Champ in-the-making
Champ in-the-making
I am new on Alfresco.
Can you help me I need to create option to add attachment for any file and folder.