cancel
Showing results for 
Search instead for 
Did you mean: 

Importing content with webdav

vpoorboy
Champ in-the-making
Champ in-the-making
Hi,
I use webdav to import our content. There're thousands of files. What is the safe number of files that I should import each time ?

And how can I preserve the created date of content ? (Alfresco doesnot use the importing date for created date)

Thanks.
4 REPLIES 4

kevinr
Star Contributor
Star Contributor
Using WebDav or FTP each file is commited within it's own single transaction - so it doesn't matter how many you upload at once, an error will only halt the last file, none of the previous files/folders will be affected.

Thanks,

Kevin

csiege
Champ in-the-making
Champ in-the-making
Kevin,

What about the question about on how to preserve create and modified date when importing a file?

I have tried ftp, webdav and webclient and all reset the file dates.

I need to preserve these! 🙂

How?

thanks!

Chris

paulhh
Champ in-the-making
Champ in-the-making
Currently, the only ways of getting content and metadata into the system in bulk is to use the ACP import format (XML + content) or the APIs.  The PHP API might provide a quick way to write some directory scanning code with inserts to Alfresco.

The ACP import needs you to create an xml file with the metadata you want to import - it's a simple format, just do an export of a space to get an example.  There is a Forge project that generates ACP files from a CSV file of items.

We will develop a file-system "scrapper" in the future (unless someone does it before us), but part of its purpose will be to assimilate the content in-place - e.g. not copy content.

Paul.

csiege
Champ in-the-making
Champ in-the-making
What about support in the FTP server for MTDM?

I tried an FTP client and the MTDM option to keep this and received a:
                  502 Command not implemented

We have been working with the acpgeneratr from the forge site.  While an useful starting point, it leaves much to be desired/implemented.  Does not work with subdirectories (only a single directory) and requires coding for any custom models, etc.

thanks.

Chris