Skip to content

Commit

Permalink
#688 Got data size from response
Browse files Browse the repository at this point in the history
  • Loading branch information
SelbiEreshova committed Jul 26, 2022
1 parent e4e99b2 commit b95e21e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/js/app-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -2570,10 +2570,12 @@ appUtilities.launchWithModelFile = function() {
success: async function(data, text, xhr){
// here we can get 404 as well, for example, so there are still error cases to handle

console.log("data.response.body",data.response.body.length)
var dataSize = data.response.body.length
var fileSize = xhr.getResponseHeader('Content-Length');
console.log(fileSize);
console.log("filesize from content-length",fileSize);

if(fileSize>250000 && (fileExtension === "sbml" || fileExtension === "xml") )
if(dataSize>250000 && (fileExtension === "sbml" || fileExtension === "xml") )
{
chiseInstance.showSpinnerText('paths-byURL-spinner')
}
Expand Down

0 comments on commit b95e21e

Please sign in to comment.