Uncaught SyntaxError: Unexpected token < error while uploading file

Abdul Qadir Bohra asked on February 20, 2018 22:37

we are using kentico 8 recently we change our server to windows server 2012 after that file uploading stopped working .File upload 100% then it stopped due to javascript error.I m able to upload text file in chrome browser but can not upload other files

Uncaught SyntaxError: Unexpected token < at new Function (

Recent Answers


Trevor Fayas answered on February 21, 2018 15:19

Couple be a couple things, one is if you moved to a new server, did you add permissions so the Kentico application pool has full access to the files?

Next you may want to resign your macros, System > Macros > Signatures

Lastly you could see if any resources are didn't copy over right. Try those first.

0 votesVote for this answer Mark as a Correct answer

Abdul Qadir Bohra answered on February 22, 2018 05:31

Thanks Trevor for reply but i forgot to mention that i m able to upload text file in chrome browser but can not upload other files

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on February 22, 2018 07:17

Have you tried clearing your browser cache? It's often required after major upgrades so your browser isn't using old JavaScript code.

0 votesVote for this answer Mark as a Correct answer

Abdul Qadir Bohra answered on February 25, 2018 18:35

Dear Trevor Fayas i already tried that

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on February 25, 2018 22:02

Can you copy the full error using the inspector on chrome (f12)? That way I can see the syntax error.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.