Changes for page Attachments

Last modified by Antony Desmeaux on 2025/05/01 10:25

From version 3.1
edited by Antony Desmeaux
on 2023/07/01 16:45
Change comment: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/15.5]
To version 2.1
edited by Antony Desmeaux
on 2023/07/01 16:45
Change comment: Migrated property [type] from class [XWiki.WikiMacroParameterClass]

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.files[0]
126 + file: fileInput
127 127   });
128 128  
129 129   if (beforeUploadEvent.defaultPrevented) {