Changes for page Attachments

Last modified by Sebastian Marsching on 2024/01/08 23:13

From version 10.1
edited by Sebastian Marsching
on 2023/08/13 16:14
Change comment: Migrated property [type] from class [XWiki.WikiMacroParameterClass]
To version 11.1
edited by Sebastian Marsching
on 2023/08/13 16:19
Change comment: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/15.6]

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -123,7 +123,7 @@
123 123   hasErrors = true;
124 124   }
125 125   const beforeUploadEvent = Event.fire(document, 'xwiki:actions:beforeUpload', {
126 - file: fileInput
126 + file: fileInput.files[0]
127 127   });
128 128  
129 129   if (beforeUploadEvent.defaultPrevented) {