Making sure replaced file also has correct content type value.
This commit is contained in:
parent
18e9991839
commit
7c8fa0f544
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ public class FedoraDatastreamController extends VitroHttpServlet implements Cons
|
|||
wdf.getDataPropertyStatementDao().deleteDataPropertyStatementsForIndividualByDataProperty(fileEntity, contentType);
|
||||
dps = new DataPropertyStatementImpl();
|
||||
dps.setIndividualURI(fileEntity.getURI());
|
||||
dps.setDatapropURI(VitroVocabulary.CONTENT_TYPE);
|
||||
dps.setDatapropURI(contentType.getURI());
|
||||
dps.setData(fileRes.getContentType());
|
||||
wdf.getDataPropertyStatementDao().insertNewDataPropertyStatement(dps);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue