We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14aa3e1 commit acb0721Copy full SHA for acb0721
packages/endpoint-files/lib/controllers/form.js
@@ -1,3 +1,4 @@
1
+import path from "node:path";
2
import { validationResult } from "express-validator";
3
import { endpoint } from "../endpoint.js";
4
@@ -11,6 +12,9 @@ export const formController = {
11
12
13
if (scope.includes("create") || scope.includes("media")) {
14
return response.render("file-form", {
15
+ back: {
16
+ href: path.dirname(request.baseUrl + request.path),
17
+ },
18
title: response.locals.__("files.upload.title"),
19
});
20
}
0 commit comments