FirstSpirit API version: 4.2.454
Old style:
Dataset dataSet = csVideo.getDataset(entityVideo);
Data data = dataSet.getData();
FileEditorValue editorFile = (FileEditorValue) data.get("cs_file").getEditor();
editorFile.get(language).setMedium(mediaVideo);
Since getData is deprecated, there probably is a way to do that using:
Dataset dataSet = csVideo.getDataset(entityVideo);
FormData videoFormData = videoDataSet.getFormData();
fileFormField.set(mediaVideo); !! does not work
The question is how do I do that?