@{ ViewData["Title"] = "Storage Migration"; ViewData["PageIcon"] = "bi-cloud-upload"; bool mediaExists = ViewBag.MediaExists; int localFileCount = ViewBag.LocalFileCount; }
Maintenance
This tool is not needed in Production
The platform has already migrated to Azure Blob Storage. Running this migration again in production is unnecessary and may cause unintended side effects. If you believe there is a specific reason to proceed, verify with the team first.
Local Filesystem Status
@if (mediaExists) {
@localFileCount file@(localFileCount != 1 ? "s" : "") found locally
@ViewBag.MediaPath
These files will be uploaded to Azure Blob Storage. Files already present in Azure will be skipped automatically.
} else {
No local media files found
@ViewBag.MediaPath
}
Azure Container Mapping
File Type Container
Profile photos profileimages
Job photos jobimages
Company logos companylogos
Equipment manuals manuals
Profile photos
profileimages
Job photos
jobimages
Company logos
companylogos
Equipment manuals
manuals
@if (mediaExists && localFileCount > 0) {
Run Migration
@Html.AntiForgeryToken()
Leave unchecked on the first run. Files already in Azure are always skipped — re-running is safe.
Migrating @localFileCount files, please wait…
}
@section Scripts { }