Is it possible to upload a directory to server?

I’m trying to upload a directory with some images but I can’t find a solution. From the client side, I’m not able to pass “webkitRelativePath” to the server. Does anyone know a solution to that? Thank you in advance.