Others

How to Automatically Create Folders When Images are Uploaded

Nimra MalikNimra Malik Oct 15, 2026 869 views

Question details

The user needs to set up a photo dropbox that automatically creates destination folders and routes images into them based on image metadata immediately after upload.

How to Automatically Create Folders When Images are Uploaded
Product
Microsoft Power Automate
Device & OS
not provided
Scenario
Automating file organization in a cloud storage environment by reading photo metadata to determine the correct folder path.
Observed behavior
The goal is to eliminate manual sorting by having the system automatically extract metadata, generate the required folders if they do not exist, and move or copy the uploaded images accordingly.
Before you start

Ensure you have an active Microsoft 365 subscription with access to Microsoft Power Automate and your chosen cloud storage service, such as OneDrive or SharePoint. Prepare a sample image with metadata to easily test your automated workflow.

Solution 1Recommended

Use Microsoft Power Automate to Dynamically Route and Organize Images

Create an automated cloud flow in Microsoft Power Automate to capture uploaded files, read properties, and dynamically generate folders based on that data.

Since basic cloud storage services like OneDrive and SharePoint lack built-in auto-sorting capabilities for complex metadata, Microsoft Power Automate bridges this gap. By building an automated workflow, you can intercept every newly uploaded file and execute conditional logic.

1
Create a New Automated Cloud Flow

Log in to Microsoft Power Automate. On the left sidebar, click 'Create', then select 'Automated cloud flow'. Name your flow and choose a trigger like 'When a file is created' for OneDrive or SharePoint.

2
Configure the Upload Trigger

Select the specific directory that will act as your photo dropbox in the 'Folder' field of the trigger. The flow will monitor this specific location for any new image uploads.

3
Extract Image Metadata

Add a new action called 'Get file properties' (or use third-party connectors if you need to extract specific EXIF data like camera model or GPS coordinates) to read the details of the uploaded image.

4
Create the Destination Folder

Add the 'Create new folder' action. Use Dynamic Content from the previous step (such as the creation date or extracted metadata value) to define the 'Folder Path'. This ensures the folder name matches your required sorting criteria.

5
Move or Copy the File

Finally, add a 'Move file' or 'Copy file' action. Use the original file identifier for the source, and set the destination to the dynamically generated folder path from the previous step. Save and test your flow by uploading an image to the dropbox.

Use Microsoft Power Automate to Dynamically Route and Organize Images
Handling Existing Folders: If the destination folder already exists, the 'Create new folder' action might throw an error. You may need to add a condition block to check for the folder's existence before attempting to create it, or adjust the 'Configure run after' settings on subsequent steps.
Free Microsoft Office alternative

Discover a Lightweight Alternative for Your Daily Office Tasks

While setting up advanced metadata automations requires tools like Power Automate in the Microsoft ecosystem, WPS Office is an excellent choice for users looking for a free, streamlined, and highly compatible alternative for their everyday document management and editing needs.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
  2. 2. Install and Launch: Run the installer, follow the on-screen instructions, and launch the application to access the all-in-one workspace.
  3. 3. Sign In for Cloud Access: Log in with your email or social account to activate WPS Cloud and start organizing your files across all your devices.
Easily organize, store, and access your daily documents with built-in WPS Cloud storage features.Highly compatible with Microsoft Office formats, ensuring seamless handling of Word, Excel, and PowerPoint files.Lightweight installation with an intuitive, tabbed interface that feels instantly familiar.Seamless cross-platform synchronization across Windows, Mac, Linux, iOS, and Android.
microsoft office alternative - wps office

Frequently Asked Questions

Can I automatically sort photos in OneDrive without using Power Automate?

No, native OneDrive and SharePoint do not have built-in conditional triggers to read image metadata and generate specific folders automatically upon upload. An automation tool like Power Automate or custom scripting is required.

How do I extract detailed EXIF data (like Date Taken) in Power Automate?

Standard SharePoint and OneDrive connectors only expose basic file properties like Creation Date and File Name. To extract advanced EXIF data, you typically need to use premium connectors (such as Plumsail Documents) or set up a custom Azure Function.

Where can I get help if my automated cloud flow fails?

If you are having trouble designing your flow or handling specific dynamic expressions, the official Microsoft Power Automate Community (powerusers.microsoft.com) is the best resource for troubleshooting and downloading community-built templates.