fixed file upload to moodle

This commit is contained in:
anhefti 2024-06-25 17:02:49 +02:00
parent 7fbf49397c
commit b33998be07

View file

@ -252,7 +252,7 @@ public class MoodlePluginFullIntegration implements FullLmsIntegrationAPI {
multiPartAttributes.add("filename", fileName); multiPartAttributes.add("filename", fileName);
final MultiValueMap<String, String> queryAttributes = new LinkedMultiValueMap<>(); final MultiValueMap<String, String> queryAttributes = new LinkedMultiValueMap<>();
multiPartAttributes.add("quizid", quizId); queryAttributes.add("quizid", quizId);
final ByteArrayResource contentsAsResource = new ByteArrayResource(configData) { final ByteArrayResource contentsAsResource = new ByteArrayResource(configData) {
@Override @Override
public String getFilename() { public String getFilename() {