How to Make an InfoPath Upload Required and Copy Files to a Shared Drive
Question details
The user needs to enforce a mandatory file-upload field in an InfoPath form and automatically save the uploaded documents to both a SharePoint site and a shared network drive.

- Product
- Microsoft InfoPath, SharePoint, Power Automate
- Device & OS
- not provided
- Scenario
- Designing a data collection form where file attachments are required, and routing those attachments to specific shared network locations for team access.
- Observed behavior
- The user is looking for the exact configuration steps to validate the upload field in InfoPath and set up an automated file-routing workflow to a shared drive.
Ensure you have access to Microsoft InfoPath Designer, edit permissions for your target SharePoint site, and an active Power Automate environment connected to your on-premises data gateway if your shared drive is local.
Make the InfoPath Upload Field Mandatory
Configure field properties within InfoPath Designer to ensure users cannot submit the form without uploading a file.
By enforcing data validation at the form level, you guarantee that incomplete submissions are blocked before reaching your SharePoint list or triggering any workflows.
Launch InfoPath Designer and open the specific form template you wish to edit.
Select the file upload control on your form. Navigate to the Data tab on the ribbon and choose 'Field or Group'.
In the Field or Group Properties dialog box, locate the Validation section and check the box labeled 'Cannot be blank'.
Save your changes and publish the updated form template back to your SharePoint site to apply the new mandatory requirement.

Automate File Copying to a Shared Drive
Use Power Automate to move submitted InfoPath files from SharePoint to a shared network drive.
Looking for a Modern Alternative to Legacy Office Tools?
While legacy software like InfoPath is deprecated, modern document processing requires reliable and highly compatible solutions. WPS Office is a lightweight, fully-featured suite that seamlessly handles your daily Word, Excel, and PowerPoint formats without the heavy resource usage.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installation file and follow the quick on-screen instructions to set up the software.
- 3. Open and Create Documents: Launch WPS Office to immediately start creating, editing, and sharing your documents with full Microsoft Office compatibility.

Frequently Asked Questions
Can InfoPath natively save directly to a shared network drive?
No, InfoPath does not natively support direct form submission to a shared network drive. The standard workaround is to submit the data to a SharePoint library first, then use a workflow tool like Power Automate to copy the file to the shared drive.
Why is my 'Cannot be blank' rule not working on the file attachment control?
Ensure you are applying the validation rule strictly to the field bound to the file attachment control in the Data source pane, rather than a generic grouping. Also, verify that the form has been successfully republished to SharePoint after making the change.
What should I use instead of InfoPath for new forms?
Since InfoPath is deprecated, Microsoft recommends using Power Apps for designing custom forms and Power Automate for handling workflows like routing attachments and automating approvals.
How do I test my Power Automate flow after setting it up?
Submit a test form through your published InfoPath interface with a sample file attached. Then, go to Power Automate, check the flow's Run History to see if it succeeded, and verify that the file appears in your target shared network drive.




