Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dockerized Testing Toolkit
DTT Backend
Commits
326861df
Verified
Commit
326861df
authored
Dec 30, 2020
by
Lukas Wiest
🚂
Browse files
feat(taskupload): enable processing of submissions directly uploaded as zip
parent
5632b491
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/hftstuttgart/rest/v1/task/TaskUpload.java
View file @
326861df
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment