Verified Commit 326861df authored by Lukas Wiest's avatar Lukas Wiest 🚂
Browse files

feat(taskupload): enable processing of submissions directly uploaded as zip

parent 5632b491
......@@ -76,8 +76,9 @@ public class TaskUpload {
break;
case "application/zip":
// TODO
throw new RuntimeException("zip processing not yet implemented");
LOG.debug("zip archive uploaded, extracting content as student submission");
ArchiveUtil.extractProjectFromZip(taskFileRef.getInputStream(), srcPath.toAbsolutePath());
break;
default:
String msg = String.format("couldn't process uploaded file with mime type %s", mimeInfo);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment