You can save any file type to custom folder location using Magento 2.
If you are working with image, pdf or CSV file and you want to save the file to a specific location using Magento standard way, You have to add a dependency to your __construct function.
The move_uploaded_file() function moves an uploaded file to a new location using core PHP but you can do it Using Magento standard way.
Both the class used to save the file to a specific location.
Your phtml file contains input type file,
<input id=”filename” name=”filename” class=”input-file required” type=”file” aria-required=”true”> Continue reading “How to save uploaded file to specific folder location using Magento 2?”