What if I choose attach as mandatory field?

If I chooses the attach field in DocType as mandatory I will face the following Error message

Error: Value missing for: attach

And if I tried to attach file I’ll face the following:

Please save the document before uploading.

looks like deadlock concept!

@mostafa, Attachments, only can be added after the document is Save, create a custom script to check if the doctype is already saved, and dont have the attachment.