File Upload Restrictions
Overview
Default Configuration
<powershell>
<uploadFile>
<allowedFileTypes>
<pattern>image/*</pattern>
<pattern>.xls</pattern>
<pattern>.xlsx</pattern>
<pattern>.csv</pattern>
</allowedFileTypes>
<allowedLocations>
<path>$SitecoreMediaFolder</path>
</allowedLocations>
</uploadFile>
</powershell>File Type Restrictions
How It Works
Configuration Examples
Allow Specific Extensions
Allow MIME Type Categories
Allow Office Documents
Common File Type Patterns
File Type
Extension Pattern
MIME Type Pattern
Upload Location Restrictions
How It Works
Sitecore Path Variables
Variable
Resolves To
Typical Path
Configuration Examples
Allow Only Temp Folder (Most Secure)
Allow Multiple Locations
Dangerous Locations to NEVER Allow
Complete Configuration Examples
Secure Configuration (Data Import Use Case)
Best Practices
Security Recommendations
Configuration Strategy
Troubleshooting
Upload fails even though file type is allowed
MIME type wildcard doesn't work
Variable like $SitecoreTempFolder doesn't resolve
Related Topics
References
Last updated