Kast-KIIT commited on
Commit
0ea27a3
·
verified ·
1 Parent(s): aa56656

File upload no more working in teacher mode "Invalid Submission Error parsing file - Invalid format" - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. 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([JSON.stringify(assignmentData, null, 2)], { type: 'application/json' });
 
 
 
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;