Hi Paulo,
I've seen that up to the 3.1.0 I have no issues with file-uploads but in 3.2.0 and 3.2.1 the same code gets back the error I described.
Debugging my code with vertx 3.2.1, I've found that in FileResolver there's this code:
public FileResolver(Vertx vertx) {
this.vertx = vertx;
String cwdOverride = System.getProperty("vertx.cwd");
if(cwdOverride != null) {
this.cwd = (new File(cwdOverride)).getAbsoluteFile();
} else {
this.cwd = null;
}
For the first part of the run, vertx.cwd value is always null, therefore this.cwd remains null and all the files (e.g. the project resources I load at start) are found in their relative path.
At some point, vertx.cwd becomes "/" and the mkdir attempt of "file-uploads" becomes an attempt to mkdir "/file-uploads" and the AccessDenied is explained.
I'll try to understand why this works with 3.1.0.