diff --git a/features/file-upload.xml b/features/file-upload.xml
index 0da46e3a5e3c..e69a7a61c3a8 100644
--- a/features/file-upload.xml
+++ b/features/file-upload.xml
@@ -132,6 +132,15 @@
+
+ $_FILES['userfile']['full_path']
+
+
+ The full path as submitted by the browser. This value does not always contain a real directory structure, and cannot be trusted.
+ Available as of PHP 8.1.0.
+
+
+
@@ -462,6 +471,42 @@ foreach ($_FILES["pictures"]["error"] as $key => $error) {
try to upload more files in one request than this limit.
+
+
+ Uploading an entire directory
+
+ In HTML file upload fields, it is possible to upload an entire directory with the webkitdirectory attribute.
+ This feature is supported in most modern browsers.
+
+
+ With the full_path information, it is possible to store the relative paths,
+ or reconstruct the same directory in the server.
+
+
+
+ Send this directory:
+
+
+
+]]>
+
+
+
+
+
+ The webkitdirectory attribute is non-standard and is not on a standards track.
+ Do not use it on production sites facing the Web: it will not work for every user.
+ There may also be large incompatibilities between implementations and the behavior may change in the future.
+
+
+ PHP only parses the relative path information submitted by the browser/user-agent,
+ and passes that information to the $_FILES array.
+ There is no guarantee that the values in the full_path array contains a real directory structure,
+ and the PHP application must not trust this information.
+
+
+