SultrySydney
New Member
Ill do what I can, yea
uploadChat = function(f) {
var filez = (f.size / 1024 / 1024).toFixed(2);
if (filez > fileMax) {
callError(system.fileBig);
} else {
if (waitUpload == 0) {
uploadStatus('chat_file', 2);
waitUpload = 1;
var form_data = new FormData();
form_data.append("file", f)
form_data.append("token", utk)
mupload = $.ajax({
url: "system/action/file_chat.php",
dataType: 'json',
cache: false,
contentType: false,
processData: false,
data: form_data,
type: 'post',
beforeSend: function() {
startMainUp();
},
xhr: function() {
var xhr = new window.XMLHttpRequest();
xhr.upload.addEventListener("progress", function(evt) {
if (evt.lengthComputable) {
var percentComplete = evt.loaded / evt.total;
upMainStatus((Math.round(percentComplete * 100)));
}
}, false);
return xhr;
},
success: function(response) {
if (response.code == 1) {
callError(system.wrongFile);
} else if (response.code == 5) {
appendSelfChatMessage(response.logs);
} else {
callError(system.error);
}
resetMainUp();
},
error: function() {
resetMainUp();
}
})
} else {
return false;
}
}
}
Just went to the file_chat link and it is indeed blankI should note that when you go to file_chat.php that it should just load a white page normally...because it doesn't display anything...just processes upload requests...no output
I was about to report on this because I havent used a vpn in a long time and so I didnt think of anything I could do to troubleshoot. Saw this and opened up nord just to find out it was running in backgroundIn sultrys case it ended up being a VPN. Might be good to check if you have something like that enabled.