U4-1906 - 6.0.2 ContentService setting value of upload property and only using publish uploads file to /media/0/yourfile.jpg

Created by Peter Gregory 13 Mar 2013, 00:44:58 Updated by Morten Christensen 20 Apr 2013, 19:32:15

If you have a property of Upload and try set it with contentservice

doc.SetValue("upload", file); cs.Publish(doc);

And only call Publish uploads the file into /media/0 rather than the id of the property because the property doesnt have an id yet.

user must call

cs.SaveAndPublish(doc) to ensure that the property gets an id.

Comments

Morten Christensen 13 Mar 2013, 18:32:26

Is this the final release of 6.0.2 or an earlier nightly build?


Priority: Normal

Type: Bug

State: Can't Reproduce

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.0, 6.0.1, 6.0.2

Due in version:

Sprint:

Story Points:

Cycle: