Hey mledic, when you say ‘ids in your page’ do you mean as element on the page itself or as an event?
I’m not entirely sure how to look for what you’re asking, I did the following: when I look under Sources and search through ‘all files’ I get the following result:
Searching for: " attachment-validation-filesize-configuration ":
1 result: ( https://xwikiurl.nl/jsx/XWiki/Attachment/Validation/Code/FileSizeValidation?language=nl&docVersion=1.1 )
define("attachment-validation-filesize-messages",{prefix:"attachment.validation.filesize.",keys:["errorMessage"]});
require(["jquery","xwiki-l10n!attachment-validation-filesize-messages","xwiki-events-bridge"],(d,g)=>{function f(c){if(!+c)return"0 bytes";const a=Math.floor(Math.log(c)/Math.log(1024));return`${parseFloat((c/Math.pow(1024,a)).toFixed(2))}${" bytes;Kb;Mb;Gb;Tb;Pb;Eb;Zb;Yb".split(";")[a]}`}const e={};d(document).on("xwiki:actions:beforeUpload",(c,a)=>{if(a.documentReference){e[a.documentReference]||d.ajax({url:(new XWiki.Document(XWiki.Model.resolve("XWiki.Attachment.Validation.Code.FileSizeValidation",
XWiki.EntityType.DOCUMENT))).getURL("get",d.param({outputSyntax:"plain",documentReference:a.documentReference})),async:!1,method:"GET",success:function(h){e[a.documentReference]=h}});var b=e[a.documentReference]}else b=document.getElementById("attachment-validation-filesize-configuration").textContent;b=JSON.parse(b).maxFileSize;a.file.size>b&&(b=g.get("errorMessage",a.file.name,f(a.file.size),f(b)),new XWiki.widgets.Notification(b,"error"),c.preventDefault())})});
Searching for: " attachment-validation-mimetypes-configuration ":
1 result: ( https://xwikiurl.nl/jsx/XWiki/Attachment/Validation/Code/MimetypeValidation?language=nl&docVersion=1.1 )
define("attachment-validation-mimetype-messages",{prefix:"attachment.validation.mimetype.",keys:["errorMessage","allowedMimetypes","blockerMimetypes"]});
require(["jquery","xwiki-l10n!attachment-validation-mimetype-messages","xwiki-events-bridge"],(e,f)=>{function k(g,b){return g.some(a=>{const c=a.indexOf("*");if(-1===c)return a===b;const d=a.substring(0,c);a=a.substring(c+1,a.length);return b.startsWith(d)&&b.endsWith(a)})}const h={};e(document).on("xwiki:actions:beforeUpload",function(g,b){if(b.documentReference){h[b.documentReference]||e.ajax({url:(new XWiki.Document(XWiki.Model.resolve("XWiki.Attachment.Validation.Code.MimetypeValidation",XWiki.EntityType.DOCUMENT))).getURL("get",
e.param({outputSyntax:"plain",documentReference:b.documentReference})),async:!1,method:"GET",success:function(n){h[b.documentReference]=n}});var a=h[b.documentReference]}else a=document.getElementById("attachment-validation-mimetypes-configuration").textContent;var c=JSON.parse(a),d=b.file.type.toLowerCase();a=c.allowedMimetypes;c=c.blockerMimetypes;const l=0<a.length,m=0<c.length;if(l&&!k(a,d)||m&&k(c,d))d=f.get("errorMessage",b.file.name,d),l&&(d+="\x3cbr/\x3e"+f.get("allowedMimetypes",a)),m&&(d+=
"\x3cbr/\x3e"+f.get("blockerMimetypes",c)),new XWiki.widgets.Notification(d,"error"),g.preventDefault()})});
I also discovered that (next to the image UI upload) I can copy / paste files into the WYSIWYG editor sucesfully. (both the WYSIWYG editor and the image uploading works normally).
If the above is confirmation of the XWiki.Attachment.Validation.Code.MimetypeValidation
or XWiki.Attachment.Validation.Code.FileSizeValidation
UIXs not being correctly loaded, how does one go about loading these UIXs?