I am new to WordPress and Php development. I have a general idea of how this is supposed to work but need help with the syntax.
So I have a form which has an input of type file inside a form
<input type="file" name="cv" />
I am only accepting files of type doc, docx and pdf and they need to be less than 2MB in size. Just need to get some direction of how to post a form with this field on it, do some basic validation checks on size and type before I mail this out. I have already looked at Wp_mail and it seems straight forward enough, but I would like to know what the best practice is in getting this done.
NOTE: I do not want to use a plugin for this - consider this a learning exercise and wanting to know how this is done instead of always defaulting to the answer that I will use a plugin.