format: run prettify

This commit is contained in:
SethBurkart123
2025-05-05 18:04:10 +10:00
parent 771169348f
commit 0f9f618164
142 changed files with 28768 additions and 20790 deletions
+8 -8
View File
@@ -19,25 +19,25 @@ export async function UploadImage(file: File): Promise<any> {
// Setting up the request options
const requestOptions = {
method: 'POST',
method: "POST",
headers: {
'Cookie': cookies,
'X-File-Name': fileName
Cookie: cookies,
"X-File-Name": fileName,
},
body: file // Binary file data
body: file, // Binary file data
};
// Making the fetch request and returning the promise
return await fetch('/seqta/student/file/upload/xhr2', requestOptions)
.then(async response => {
return await fetch("/seqta/student/file/upload/xhr2", requestOptions)
.then(async (response) => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
const json = await response.json();
return `/seqta/student/load/file?type=message&file=${json.uuid}`;
})
.catch(error => {
console.error('Error during file upload:', error);
.catch((error) => {
console.error("Error during file upload:", error);
throw error;
});
}