I was just trying to file a bug report about the Orion browser when I wanted to attach a video (22.4 MB). This only yields the error message "Oops! Something went wrong. Please reload the page and try again."
The POST https://orionfeedback.org/api/fof/upload request fails with a 502 Bad Gateway.
Also this issue is not properly handled by the frontend: Uncaught (in promise) TypeError: can't access property "errors", t.response is null in webpack://fof/upload/src/forum/handler/Uploader.js line 52.
Excerpt:
// send a POST request to the api
return app
.request({
method: 'POST',
url: app.forum.attribute('apiUrl') + '/fof/upload',
// prevent JSON.stringify'ing the form data in the XHR call
serialize: (raw) => raw,
body,
})
.then((result) => this.uploaded(result, addBBcode))
.catch((error) => {
this.uploading = false;
m.redraw();
const e = error.response.errors[0]; // <------- line 52
if (!e.code.includes('fof-upload')) {
throw error;
}
app.alerts.clear();
app.alerts.show(
{
type: 'error',
},
e.detail
);
});
Browser: Firefox 414
Video size: 22.4 MB
No VPN, Same with extensions disabled
The media upload should work.
Firefox 141.0