Want to save scanned file path directly into my sql database using Mvc

i want that code, when i scan a file i want to get the file path and want to store in my database and project folder also as like upload image but the main issue is how can i get the scanned file path

Thanks & Regards: