Image Attachment

HI! Good day.

Can someone help me? Im having trouble implementing something in image attach. when the user is not uploading there photo, i want a default photo to be placed. Is there any method i can use to implement such thing? any help is appreciated 2


Create a Server Side Script

on validate method
and then check if the attach image is empty
and create a new file doc and put reference of the Doctype, Docname and field