cancel
Showing results for 
Search instead for 
Did you mean: 

How to use alfresco and how to integrate alfresco with our s

mandavasateesh
Champ in-the-making
Champ in-the-making
Hi  Friends,

Iam new to alfresco, i have downloaded and installed alfresco content management system.
iam able to uploading the documents and downloading the documents.
but my requirement is in my web application i am uploading the documents, these are stored in one folder( created in local meshine). But i want to store those documents in alfresco cms. how to integrate alfresco with my developed web application.
please provide step by step procedure.

Thanks,
Satish.
10 REPLIES 10

mikeh
Star Contributor
Star Contributor
You would write an application that watched the local folder and uploaded any documents that were created there into Alfresco. Then either delete or archive the document from the local folder.

Thanks,
Mike

mandavasateesh
Champ in-the-making
Champ in-the-making
Hi,

can you give me the sample code..how to write the application.
i don;t know how to write.
i am using srtuts, hibernate,ejb, mysql and JBoss server. actually i am creating the folder by using xml file. in thi xml file iam creating the local folder.
can you give me the sample code to me that is helpful for me..

mikeh
Star Contributor
Star Contributor
I don't have any sample code, sorry. It shouldn't be too difficult though: keep watching your local folder in a timed loop, when a file is created watch for it's write lock to become available (or watch the file size - depends on the operating system). Then upload the file into Alfresco.

Thanks,
Mike

mandavasateesh
Champ in-the-making
Champ in-the-making
Mike,

heare i don't want to use the local folder.
while uploading directly it needs to go alfresco.
if we use alfresco, then i think no need of local folder.
while uploading only it needs to directly go to the alfresco.
how can i do it.

mikeh
Star Contributor
Star Contributor
Sorry, I misunderstood your original post. In that case, just upload directly into Alfresco.

There are lots of examples on the wiki, e.g. http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload and http://wiki.alfresco.com/wiki/URL_Addressability#UploadContentServlet

Thanks,
Mike

mandavasateesh
Champ in-the-making
Champ in-the-making
Hi Mike,

Thanks for your reply..
you have directed me that how to upload the documents manually.
I have downloaded and installed alfresco alfresco-community-3.4.b-installer-win-x32.exe
it is working fine, it is manually uploading the documents.
but i need to upload the documents functionaly. i.e upload the document through my web application to alfresco repository.
can you guide me how to configure alfresco with my web application.

Thanks,
Satish.

mikeh
Star Contributor
Star Contributor
You web application need to generate a multipart/form-data POST to the Alfresco upload servlet (see the first wiki article). You'll have to do some research on how to achieve that depending on what language your application is written in.

Thanks,
Mike

mandavasateesh
Champ in-the-making
Champ in-the-making
Hi Mike,

I am not understand, what is multipart/form-data POST ?
can you explain the complete procedure.

Thanks,
Satish

mikeh
Star Contributor
Star Contributor
How much detail you want?  Smiley Very Happy http://www.faqs.org/rfcs/rfc1867.html

Mike