I'm new to Magento. I want to create an upload field on product view form just before the Add to Cart button for the end user to upload an image file before clicking Add to Cart button. How to show that field and how to upload the image in the file system. Please also mention what to add in which files to make it happen.
You can do this whole thing from your product edit page in admin panel.
Product Edit > Customizable Options > Add Option > Select "File" from option type dropdown