Commit 4b220580 authored by Chiraz Boukadida's avatar Chiraz Boukadida
Browse files

[fix,#31] direcory uploads added

parent 544f8418
Pipeline #76675 passed with stages
in 2 minutes and 24 seconds
......@@ -33,7 +33,7 @@ fun Route.apiRouting() {
var path = ""
val multipartData = call.receiveMultipart()
val path1 = "uploads"
val pathAsFile1 = File("uploads")
val pathAsFile1 = File(path1)
if (!Files.exists(Paths.get(path1))) {
pathAsFile1.mkdir()
......
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