add upload response (#3428)
* add upload response * fixing comments Co-authored-by: root <root@HQ-10MSTD3EY.roblox.local>
This commit is contained in:
@@ -288,6 +288,11 @@
|
||||
function uploadFile(file, i) {
|
||||
var url = window.location.href;
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == XMLHttpRequest.DONE) {
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
var fileName = file.name;
|
||||
xhr.upload.addEventListener('progress', function(e) {
|
||||
if (e.lengthComputable) {
|
||||
|
||||
Reference in New Issue
Block a user