File upload no more working in teacher mode "Invalid Submission Error parsing file - Invalid format" - Follow Up Deployment
Browse files- index.html +4 -1
index.html
CHANGED
|
@@ -514,7 +514,10 @@
|
|
| 514 |
};
|
| 515 |
|
| 516 |
// Create downloadable file with all security features
|
| 517 |
-
const blob = new Blob(
|
|
|
|
|
|
|
|
|
|
| 518 |
const url = URL.createObjectURL(blob);
|
| 519 |
const a = document.createElement('a');
|
| 520 |
a.href = url;
|
|
|
|
| 514 |
};
|
| 515 |
|
| 516 |
// Create downloadable file with all security features
|
| 517 |
+
const blob = new Blob(
|
| 518 |
+
[JSON.stringify(assignmentData)], // no pretty-print: fewer chances of stray \r\n
|
| 519 |
+
{ type: 'application/json;charset=utf-8' } // ✅ explicit
|
| 520 |
+
);
|
| 521 |
const url = URL.createObjectURL(blob);
|
| 522 |
const a = document.createElement('a');
|
| 523 |
a.href = url;
|