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) {
|
function uploadFile(file, i) {
|
||||||
var url = window.location.href;
|
var url = window.location.href;
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.onreadystatechange = function() {
|
||||||
|
if (xhr.readyState == XMLHttpRequest.DONE) {
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
}
|
||||||
var fileName = file.name;
|
var fileName = file.name;
|
||||||
xhr.upload.addEventListener('progress', function(e) {
|
xhr.upload.addEventListener('progress', function(e) {
|
||||||
if (e.lengthComputable) {
|
if (e.lengthComputable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user