cancel
Showing results for 
Search instead for 
Did you mean: 

Add a file to Alfresco without using the share interface

vincent_roye
Champ in-the-making
Champ in-the-making
Hi,

I have the following thing to do and I really don't know how to start.

- I have a long PDF file that I split and rename in various different files (it's a cron job)
- I want this files to be integrated somehow in Alfresco. I suppose that I have to move them to the right Alfresco folder (it's a part of the cron job). I should call the folder "For revision"
- The user will be allowed to check wether or not the filenames are correct and can be moved in a different Alfresco folder. I want these files to have an attribute "number" and the value of it will be the filename

Can anyone orientate me ? I don't know how I can do that.

Thank you very much.

Vincent

3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
??splitting and renaming of pdf file

create standalone service where with the help of apache-tika library you or other pdf utilities you would be able to operate on pdf files which are stored in your filesystem.

>>files to be integrated somehow in Alfresco
For integrating those newly created files you can create alfresco cron job which first invoke your utility which you had crated in first step then upload those files in alfresco using alfresco repository services.

>> files to have an attribute "number" and the value of it will be the filename
During upload read the filename and associate it with newly create node of alfresco as custom property.

Thanks for helping me during Christmas holidays Mits, that's nice Smiley Happy

- Concerning the PDF generation, everything is ok. I talked about splitting and renaming because it's a kind of sequence of scanned ticket and I'm extracting the number out of it and setting it as the filename. It's under control and not so interesting Smiley Happy

- "you can create alfresco cron job which first invoke your utility" Do you mean that I have to create a specific alfresco cron job. It's gonna grab my PDFs files in my system and automatically add them to Alfresco repository ? It sounds good Smiley Happy

- "During upload read the filename and associate it with newly create node of alfresco as custom property." Alright so that I have to learn how to work with Alfresco scripts and find out how to deal with my filename / node etc…

Am I right more or less ? Do you mind if I had you to Skype ?

Thanks a lot again.

Vincent

mitpatoliya
Star Collaborator
Star Collaborator
"Do you mean that I have to create a specific alfresco cron job. It's gonna grab my PDFs files in my system and automatically add them to Alfresco repository ?"
Yes, exactly.