Javascript error when uploading

  •  07-09-2014, 3:55 PM

    Javascript error when uploading

     Hi I am getting the following error when I am trying to upload a file.

     

    I am in the process of converting my app from CuteSoft  to Richtexteditor.  I am not sure if their is a possible conflict with the two editors being in the app.  Only the Richtexteditor is being used on the page .

     

    Below is the error and the  code snipit.    If I ignore the error the upload works.

     

    Thanks for your help. 

     

     

     

    JavaScript runtime error: Unable to get property 'toUpperCase' of undefined or null reference

     

    for(var i=0;i<tasks.length;i++)
    {
    var task=tasks[i];
    var filename=task.FileName;
    if(INSERT_DATE_BEFORE_FILENAME)
    {
    var d=new Date();
    filename=String(d.getFullYear()*10000+(d.getMonth()+1)*100+d.getDate())+"_"+filename;
    }
    task.SetClientData(filename);
    if(usednamemap[filename]||self.finditem(filename))
    indexes.push(i);
    else
    usednamemap[filename]=true;
    }

    Filed under:
View Complete Thread