404 error when loading folders and files
-
Hi
I just installed the plugin and I noticed that the loading of files and folders fails.
The console logs a 404:I did some digging and it turns out, that happens when pretty permalinks are not setup.
When changing the buildApiUrl function in admin-app.js to the following, everything works.buildApiUrl(endpoint) {
const base = String(mstvConfig.restUrl || '').replace(/\/+$/, '');
const path = String(endpoint || '').replace(/^\/+/, '');
if (base.includes('?')) {
const qIdx = path.indexOf('?');
if (qIdx === -1) {
return${base}/${path};
}
return${base}/${path.substring(0, qIdx)}&${path.substring(qIdx + 1)};
}
return${base}/${path};
},Also I noticed that there is not feedback why a file could not be uploaded, when it is too big. It just gives the message: No file uploaded.
Best Daniel
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.