cancel
Showing results for 
Search instead for 
Did you mean: 

upload file on a space with metadata extraction rule

sam69
Champ in-the-making
Champ in-the-making
Hi !

I tried to upload a file through webservice on a space with two rules :
- Extract common metadata fields from content
- Link to category 'Version Control Plan'

The extraction of metadata doesn't work with webservice.
I tried to upload the same file with Alfresco web client and with CIFS and it was working.

But the "link to category" rule work when I upload the file through web services.

Is it a bug ? Or this specific rule is disable for better performance ?

Thanks in advance !

Cheers !
3 REPLIES 3

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

I am not aware of any rules being disabled when uploading content via the web services.  In fact all rules should be fired regardless of which interface is used to upload the content.

This probably mean this is a bug so the best course of action would be to raise a new issue in JIRA (http://www.alfresco.org/jira), providing details of how to reproduce the problem.  Any sample code you may have will be very helpful.

You'll be able to track the progress of the bug from within JIRA.

Thanks,
Roy

sam69
Champ in-the-making
Champ in-the-making
Thanks Roy for your answer !
It was my fault. I set the wrong mime type before uploading
ex : ContentFormat contentFormat = new ContentFormat("application/msword", "UTF-8");
So it's working if the correct mime-type is specified.
Sorry about that.

Samuel

archana_bonkanp
Champ in-the-making
Champ in-the-making
Hi ,

Can anyone please help in the  following regards

1)i want to know the type of content uploaded in a particular space
2)is there a way to restrict the file size & type while uploading

cheers,
Archana