Submission of gov form online for Indian passport renewal

After logging into the passport seva portal I completed the gov form and printed it out.After I physically sign and attach the photos do I have to scan it to upload it back on the gov portal ? If not where do I submit it online? I am aware that it also needs to be physically sent.