cancel
Showing results for 
Search instead for 
Did you mean: 

How to use alfresco as a repository?

mehemant
Champ in-the-making
Champ in-the-making
We want to use alfresco as a repository to store large amount of files (images, docs, xls, pdf etc). We are using PHP codeigniter for our development.
We have done POC and small implementation with Webscripts, but we are not able to find the API for retrieving(listing), editing and deleting the files.
Please suggest which is better approach …CMIS or webscripts?
It will be very helpful if you provide us the API for retrieving (i do not mean searching), editing and deleting the file(s) using webscripts also.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
CMIS is the preferred API, look at that first.    http://docs.alfresco.com/4.0/index.jsp contains a reference to Apache's CRUD example.
Then look at the REST (WebScript) API.

There are many other remote API's available as well,  but you havn't given any details of preferences.

mehemant
Champ in-the-making
Champ in-the-making
We have used WebScripts (API) for uploading files to allfresco. While uploading these files on alfresco we are forming one url (file upload path) and using that to access/retrieve the documents in our application.
URL looks like :
http://mysitename.com:8080/alfresco/download/direct/workspace/SpacesStore/c79c7aff-2872-45d1-94b0-78...

Please suggest the better approach to access the files(images, documents etc.) from alfresco into my application.
Here i am facing one more issue of Ticket expiry. Though ticket expiry is set to False in repository.properties, tickets are not getting authenticated after 1-2 days. This is causing lot of problems to access the files from alfresco into my application.