Error while uploading letter head or doctype

i m updating letter head (in production) in print setting but while saving I am seeing below error in console.

VM246:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Object. (desk.min.js:142)
at i (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at z (jquery.min.js:4)
at XMLHttpRequest. (jquery.min.js:4)
(anonymous) @ desk.min.js:142
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
z @ jquery.min.js:4
(anonymous) @ jquery.min.js:4

frappe version : 7.2.30
erpnext :7.2.30

Hard to say, maybe share the full code of your letter head.

@rmehta thank you so much for your response it is due to directory permission issue.

@Hardik_Mehta can you please elaborate what was the permission issue? I am facing the same issue in v12.