File / image / video upload — the AdmFieldType.Image field & asset pipeline
This pipeline is generic, not image-only — see Not just images — FileExtensionType and non-image
files below if you're looking to
attach video or generic/document files, not just pictures.
Grounded against origin/releases/7.0 (MibServer3 field/meta + the FileManagement microservice + MibClient2 +
MibServerApi storage/media config + the shared MibStorageLib2
storage-abstraction library — see MibServerApi's own storage config below).
Identical on releases/6.0 — every file cited in that section is byte-identical between the two branches.
An AdmFieldType.Image field is a Related field to a file-capable media type, and uploads flow through the
FileManagement microservice into a configured StorageArea (disk / S3 / Azure / SMB). At render the field
value is an ImageFieldViewData { Id, Title, Source(src), Preview, alt }, and an optional resizer rewrites the URL.
Use this whenever content carries an image/asset (logos, posters, thumbnails, hero images).
Not just images — FileExtensionType and non-image files (video, generic/document)
The pipeline above is generic, not image-only — the "Image field" name is historical. There is no
AdmFieldType.File or AdmFieldType.Video; AdmFieldType.Image is the only field type that carries files, and
it is used unchanged whether the underlying assets are images, videos, or generic documents/attachments. What varies
is the file type, tracked per extension in ADM_FILEEXTENSIONS, not the field type.
FileExtensionType (MibServerApi/MediaiBox.Cms.Api.Helpers/FileExtensionHelper.cs):
public enum FileExtensionType
{
File = 0,
Image,
Video
}
This backs the ADM_FILEEXTENSIONS.TYPE column — set by the AddOrUpdateFileExtension seed helper in the same
file (TYPE = (int)fileExtension.Type), which migrations call to register each extension a media type accepts.
Concrete non-image proof: migration
MibServerApi/MediaiBox.Cms.Api.Database.Migrations.BasicObjects/Migrations/201711031542210_Mib_AddM4sFileExtension.cs
seeds ADM_FILEEXTENSIONS with NAME=".m4s" (a video/adaptive-streaming segment format), TYPE=2 (Video),
SOURCETABLE=MMEDIAS — the exact same table/pipeline used for images, just a different TYPE.
The derived flag MediaType.CanImagePreview (MibServer3/MediaiBox.Cms.FrontEnd.Dao/MetaRepository.cs:518) makes
the non-image case explicit in code:
mediaType.CanImagePreview = extensionCount > 0 && content.Container.Linked["adm_fileextensions"]
.All(ext => ext.FieldsCollection["type"].ToString().Equals("Image", ...));
i.e. a file-capable media type is only treated as "preview like an image" when every linked extension is
Image-typed — the code's default assumption is that a media type's extensions can mix File/Image/Video,
and only the all-Image case gets image-preview treatment. File (0) is the catch-all for anything that isn't
specifically recognized as Image or Video (PDFs, docs, generic attachments) — same upload/storage/EntityFileLink
plumbing, no special-casing anywhere in UploadController/FileManagement/StorageArea code.
Practical upshot: to model a video or generic-document field, you still declare an AdmFieldType.Image field
pointing at a relatedTableName: media type — you just configure that media type's adm_fileextensions with
TYPE=Video/TYPE=File entries (e.g. .mp4, .m4s, .pdf) instead of only image extensions. Nothing in the
FileManagement microservice, StorageArea config, or EntityFileLink cares about the distinction.
The Image field (a Related field that carries files)
AdmFieldType.Image is processed alongside Related/DropRelated/Owner — it requires a relatedTableName:
pointing at a media type that is file-capable (MetaRepository.cs:361,391-394). "File-capable" (HasFile=true) means
that related media type has adm_fileextensions links (MetaRepository.cs:173) — i.e. it's configured as an
asset/image repository. Declare it:
IMAGE_ID = t.Int(nullable: true)
.WithAdmField("Poster", AdmFieldType.Image, relatedTableName: "IMAGES") // IMAGES must be a file-capable media type
Value at render — ImageFieldViewData (MediaiBox.Cms.FrontEnd.Model/UI/Fields/ImageFieldViewData.cs:5):
{ int Id; string Title; string Source /*JSON "src"*/; ImageFieldPreviewViewData Preview; string alt = Title }.
The field's RawValue is the related asset's id (see recipe.read-typed-field-value). Without a relatedTableName,
mib validate <TYPE> flags it (same FieldChecker rule as Related).
Upload — the FileManagement microservice
Bytes never go through the BFF's content save — they go to FileManagement (mib-cms-microservices-*), which writes
to a StorageArea. Endpoints (UploadController.cs):
| Endpoint | Verb | Role |
|---|---|---|
/api/v1/upload |
POST | start a resumable upload → file ids + upload urls |
/api/v1/upload/content/{guid}/{filename} |
PUT | write bytes (chunked: Content-Range, optional Content-MD5) → 201/206 |
/api/v1/upload/content/{filename} |
POST | simple upload (no chunking) → default StorageArea |
/api/v1/upload/check |
PUT | is the upload complete? |
/api/v1/upload/content/{mediaType}/{contentId} |
PUT | finalize → LocalFileLink[] bound to the content |
The upload request (DeserializedUploadedContent) carries _type, _filename, _fileSize, _storageAreaId,
_md5, optional _base64Data, and cloud/SMB creds. StorageAreaId null → BestServer (most
free disk, or the first active cloud/UNC area — see the corrected algorithm below).
StorageArea (where bytes land)
A StorageArea is a config block in MibServerMediaConfig.mibconfig (storageArea<N>), read by id
(MibServerMediaConfig.GetStorageArea(id)):
<storageArea0><path>./media</path><active>true</active><storageType>Disk</storageType></storageArea0>
<storageArea1><path>s3://my-bucket</path><active>true</active><storageType>Amazon</storageType><awsRegion>us-east-1</awsRegion></storageArea1>
storageType ∈ {Disk, Amazon, Azure, Smb}. EntityFileLink persists the chosen StorageAreaId with the asset —
so moving assets between areas is a data migration.
MibServerApi's own storage config — the duplication gotcha
MibServerApi is NOT a pure client of the FileManagement microservice. It calls the microservice's client SDK
(MediaiBox.Cms.MicroServices.FileManagement.Client → IMibFileManagementClient, injected into
MibObjectWorkflow) for the actual upload lifecycle (CreateUploadProcess / WriteFileUpload /
CheckFilesUploaded / CompleteUploadProcess — MibObjectWorkflow.Insert.cs:298, ApiV1Controller.cs:697,722) —
but it also independently resolves StorageArea metadata, and in some paths talks to the storage backend directly,
using its own copy of the storage configuration. These are two separate config surfaces that must be kept in
sync by hand:
MibServerMediaConfig.mibconfig— literally the same class name, same file name, samestorageArea<N>sections/keys (path,active,storageType,awsRegion,subFolder,isAwsPublic,isAzurePublic), defined twice, once per service:- FileManagement MS:
MediaiBox.Cms.MicroServices.FileManagement.Model/Config/MibServerMediaConfig.cs - MibServerApi:
MediaiBox.Cms.Api.Model/Base/Config/MibServerMediaConfig.cs
Both ship a
SampleConfig/MibServerMediaConfig.mibconfigwith the exact same schema (MibServerApi/DockerPackaging/SampleConfig/API/…vs.MibMicroServices/FileManagement/…/SampleConfig/…) — proof the values (whichstorageArea<N>ids exist, theirpath/subFolder/type) have to be copy-pasted into both services' deploys, not read from one source of truth. MibServerApi uses this to decide the subfolder prefix for the final asset path (MibObjectWorkflow.FileHandle.cs:38 GenerateFinalPathDestination) — if the ids/subfolders drift between the two services, the URL/path MibServerApi computes for a StorageArea won't match where FileManagement actually wrote the file. It's not just config that's duplicated: FileManagement's ownWorkflow/StorageWorkflow.cscarries methods with the same names and near-identical logic (GenerateFinalPathDestination,GetSubFolderByServerMediaConfig) reading its own copy ofMibServerMediaConfig— genuine parallel code, not just parallel config. That file also has a second, unrelatedGetSubFolderByStorage(storage)that reads asubFolderkey fromMibStorageLib2Config.mibconfigper storage type (not per area) — a fourth "subfolder" concept, easy to confuse with the per-area one above.- FileManagement MS:
MibMediaConfig.mibconfig— MibServerApi-only, sectionstoragearea<N>, key = media type name (ordefault): the public base URL for that storage area/media type combo. Read and validated as a well-formed URI inMibObjectWorkflow.FileHandle.cs:83-97 ValidateFileURL— an unset or malformed entry throws"Could not locate valid storageArea ID: {id}"at save/finalize time. This has no equivalent inside the FileManagement microservice (its ownMibMediaConfig.mibconfigsample ships but the microservice itself does not consume it for URL building — cross-check before assuming symmetry).Storage credentials (
MibAwsConfig/MibAzureConfig/MibSmbConfig— sharedMediaiBox.Core.Configclasses, not repo-local) are read independently by each service off its own local.mibconfig/env, so the actual secret VALUES (S3 access/secret key, Azure account name/key, SMB user/password/domain) must be deployed identically to both. MibServerApi consumes them inMediaiBox.Cms.Api.Configuration/MibServerStorageConfiguration.csto build a realMediaiBox.Storage.Model.Storagedescriptor per StorageArea id.StorageAreaAccessHelper.cs:22-88then uses that descriptor to open a direct storage client (StorageFactory.CreateAmazon/CreateAzure/CreateDisk/CreateSmb) and list files on disk/S3/Azure/SMB itself — i.e. for this operation MibServerApi bypasses FileManagement entirely and talks to the storage backend on its own credentials. FileManagement's own per-area path (MediaiBox.Cms.MicroServices.FileManagement.Model/StorageConfiguration.cs Parse(MibServerMediaConfig)) reads the sameMibAwsConfig/MibAzureConfig/MibSmbConfigclasses for a definedstorageArea<N>— so for that path the two services at least agree on where credentials come from, even though each reads them independently at runtime (they still need the same config/secret deployed to both pods).A third, separate credential path for the "no StorageArea yet" case — lives in the shared
MediaiBox.Storagelibrary both services build on (StorageFactory/IMibStorage/AutoMibStorage, backing Disk/S3/Azure/SMB/FTP/Dropbox/SSH/Null). FileManagement'sStorageConfiguration.Parse()(no id — used forGet()/BestServerandGetTemp()/TempMediaServer, i.e. picking/landing a file before aStorageAreaIdis assigned) does not go throughMibServerMediaConfigorMibAwsConfigat all: it reads the storage type fromDefaultStorageConfig(MediaiBox.Storage.Model/Config/DefaultStorageConfig.cs, backed byMibStorageLib2Config.mibconfig's top-leveltypekey) and then the credentials straight from that same file's per-type section (e.g.[amazon]→accessKey/secretKey/bucket/regionEndpoint, viaMediaiBox.Storage.Amazon.Config.AmazonConfig). SoMibStorageLib2Config.mibconfigis not just "the FileManagement MS's backend-type selector" (as StorageArea config would suggest) — it is a genuinely separate, third source of storage credentials, used only for the pre-StorageArea-assignment path, and it is not present at all on the MibServerApi side (confirmed: noMediaiBox.Storage.*PackageReference other than the model project). Confirmed byte-identical betweenreleases/6.0andreleases/7.0in the library itself.
Practical consequence. Whenever you add, remove, or change a StorageArea on the FileManagement microservice side
(new bucket/disk path, rotated credentials, new subfolder), you must manually replicate the same StorageArea id +
settings + credentials into MibServerApi's config, and add/update the matching storagearea<N> URL entry in
MibServerApi's MibMediaConfig.mibconfig. There is no sync mechanism and no single source of truth — this is a
known, still-open limitation (the legacy microservices doc already flagged intent to "address this in a future
release"; nothing in the MibServerMediaConfig/MibServerStorageConfiguration/StorageAreaAccessHelper code
changed between releases/6.0 and releases/7.0, so the debt is unresolved as of 7.0 too). If MibServerApi and
FileManagement disagree on a StorageArea's id/type/path, uploads can succeed on the microservice side while
MibServerApi returns a broken URL, throws the "Could not locate valid storageArea ID" exception, or reads/serves
from the wrong backend.
Checklist when adding/changing a StorageArea:
- [ ] FileManagement MS
MibServerMediaConfig.mibconfig→ new/editedstorageArea<N>block. - [ ] MibServerApi
MibServerMediaConfig.mibconfig→ the samestorageArea<N>id,path,storageType,subFolder,awsRegion/public flags. - [ ] MibServerApi
MibMediaConfig.mibconfig→ the public base URL entry for that samestorageArea<N>(per media type, ordefault). - [ ] Credentials config (
MibAwsConfig/MibAzureConfig/MibSmbConfig) → same values deployed to both services' config/env. - [ ] If the change affects the default/temp storage (no
StorageAreaIdassigned yet, i.e.BestServer/TempMediaServer) → also updateMibStorageLib2Config.mibconfig'stype+ matching per-type section on the FileManagement MS. This path is unrelated toMibServerMediaConfig/MibAwsConfigand does not exist on MibServerApi at all.
Disk storage — the fallback, the "best server" algorithm, and Linux portability
Disk is not just "one of four storage types" — it is the silent default whenever storageType is missing or
unrecognized, in every StorageArea/BestServer/Temp resolution path in both services:
MibServerApi/MediaiBox.Cms.Api.Model/Base/Config/MibServerMediaConfig.csStorageTypegetter (~163-195): parses thestorageTypestring ("azure"/"aws"/"smb"/"disk", case-insensitive); if none match, falls back to the legacyisAzureStorage/isAwsStoragebooleans; if neither is set → returnsStorageType.Disk. No exception.MibServerApi/MediaiBox.Cms.Api.Configuration/MibServerStorageConfiguration.csParse(config)(16-68): explicitswitchcases for Amazon/Azure/Smb;default:buildsStorage{Type=Disk, Path=config.Path}— thisdefaultcatches Disk itself and anything unrecognized.MediaiBox.Cms.MicroServices.FileManagement.Model/Config/MibServerMediaConfig.cs:176— same getter, but viaGetString("storageType").TryGetStorageType()(Extensions/StringExtension.cs:50-63), which can returnFtp/DropBox/SshAccess/Nullfor those strings (no legacy-boolean fallback here).MediaiBox.Cms.MicroServices.FileManagement.Model/StorageConfiguration.csParse(MibServerMediaConfig)(75-127) — sameswitch-with-default→Diskpattern as MibServerApi's, so even the extra enum values fromTryGetStorageType()collapse back to Disk here.
Net effect: configuring storageType as ftp/dropbox/sshaccess, misspelling it, or leaving the key unset
silently becomes Disk storage, with whatever path was configured handed straight to
StorageFactory.CreateDisk(path). No exception is thrown on this path — contrast with GetDefault() below,
which is the one path that fails loud.
BestServer — "most free disk", corrected. The real algorithm (MibServerMediaConfig.BestServer, duplicated
identically in both services' MibServerMediaConfig.cs, ~46-89):
- Iterate
ActiveServers(allstorageArea<N>withactive=true), in config order. - The first area that is Azure/Aws-typed, OR whose
Pathstarts with\\(a UNC path), is picked immediately and the loop breaks — there is no free-space comparison between multiple cloud/UNC areas; config order decides ties among them. - Only if no cloud/UNC area qualifies does it compare local-disk candidates:
System.IO.DriveInfo.GetDrives(), prefix-matching each area'sPathagainst each drive'sName(both\- and/-style), picking the Disk area with the largestAvailableFreeSpace. - No active/qualifying server at all → throws (
msgErrorNoStorageArea).
DriveInfo.GetDrives() works cross-platform on .NET Core/Linux (it enumerates mounted filesystems), so the
free-space comparison itself is portable — but the prefix match only works if the configured path is a real POSIX
absolute path under an actual mount point. A Windows-style path (C:\...) configured on a Linux deployment simply
won't match any drive → that area behaves as if it has 0 free space (loses the comparison, or triggers
msgErrorNoStorageArea if it was the only candidate).
GetDefault() — a third path, FileManagement-only, and the one that fails loud. Distinct from
StorageArea/BestServer entirely: IStorageConfiguration.GetDefault() exists only in FileManagement's interface
(MibServerApi's IStorageConfiguration has no such method). StorageConfiguration.GetDefault() (private Parse()
overload, StorageConfiguration.cs:19-73) reads DefaultStorageConfig().Type — the MibStorageLib2Config.mibconfig
[default].type key described in MibServerApi's own storage config point 4 above —
then credentials from that same file's per-type section. Its switch has explicit Amazon/Azure/Smb/Disk cases;
default: → Storage{Type=Null} (the only Disk-adjacent path where Disk is not the fallback). This matters
because the two production call sites — UploadWorkflow.cs:246 Upload(fileName, stream) and
DownloadWorkflow.cs:83 GetDownloadStream(fileName) — both explicitly check
if (defaultStorage.Type == StorageType.Null) throw new StorageTypeDefaultNotFoundException();. So a misconfigured
[default].type fails loudly here, unlike every other Disk-fallback path above, which degrades to Disk silently.
(StorageAreaHelper.GetDefaultStorageType() at Helper/StorageAreaHelper.cs:9-11 reads the same [default].type
key independently, via the same TryGetStorageType() extension.)
Ftp/DropBox/SshAccess are dead configuration options everywhere. The StorageType enum
(MibStorageLib2/MediaiBox.Storage.Model/StorageType.cs: Disk=1, Amazon=2, Azure=3, Smb=4, Ftp=5, DropBox=6, SshAccess=7, Null=0) and the low-level StorageFactory/AutoMibStorage support them, but neither service's own
resolution switch (StorageWorkflow.GetStorage() in FileManagement, MibFileObjectWorkflow.GetStorage() in
MibServerApi) implements anything beyond Amazon/Azure/Disk/Smb — their default throws NotImplementedException.
Setting storageType=ftp anywhere just gets you Disk (via the default→Disk switches above) or a
NotImplementedException, never actual FTP/Dropbox/SSH behavior.
Disk read/write is fully Linux-portable — only one narrow branch is Windows-only.
MibBaseDiskStorage<T> (MibStorageLib2/MediaiBox.Storage.Model/Storages/Base/MibBaseDiskStorage.cs) —
GetFolders/GetFiles/Exists/Read/CreateFolder/Write/Delete/DeleteFolder/IsWriteLocked — uses plain
System.IO.Directory/File calls throughout, no Windows-specific API. Write retries on failure
(writeRetries/retrySleep, configurable) and streams in GetBlockSize()-sized chunks.
FormatFolder.FormatRootPath/FormatedFolder (MibStorageLib2/MediaiBox.Storage.Model/Helpers/FormatFolder.cs)
unconditionally normalize \→/, so a Windows-style configured path self-corrects for ordinary reads/writes.
DiskConfig (MibStorageLib2/MediaiBox.Storage.Disk/Config/DiskConfig.cs) reads [disk] from
MibStorageLib2Config.mibconfig: path (required), blockSize (default 2 MB via
DefaultStorageConfig.DefaultBlockSize). The one Windows-specific branch: DiskStorage.CopyTo/CopyFrom
(MibStorageLib2/MediaiBox.Storage.Disk/DiskStorage.cs:54-140) is gated by
RuntimeInformation.IsOSPlatform(OSPlatform.Windows) and uses the Windows-only XCopy.Copy helper (raw path
concatenation, no Path.Combine) for disk-to-disk copies. On Linux it falls through to the generic
MibBaseStorage.CopyTo/CopyFrom (read the source then write the target via streams) — functionally equivalent,
just without the OS-level xcopy shortcut; no functionality is lost on Linux containers. Confirmed via
git diff origin/releases/6.0 origin/releases/7.0 (all empty) that every one of DiskStorage.cs, DiskSettings.cs,
DiskConfig.cs, MibBaseDiskStorage.cs, MibBaseStorage.cs, FormatFolder.cs is byte-identical between 6.0 and 7.0.
A real (but narrow) Windows-path bug — isolated to extension detection, not the write/serve path.
StorageAreaAccessHelper.GetStorageFileExtension
(MibServerApi/MediaiBox.Cms.Api.Workflow.Payload/Helper/StorageAreaAccessHelper.cs:22-88, used to detect an
existing file's extension on disk — a narrow secondary feature) builds
structuredPath = Path.Combine(storageConfig.Path, mediaType, …) and runs it through SlashConverter (90-102): if
the resulting path happens to start with \, it treats it as "Windows disk" and force-converts every / to \
(Regex.Replace(structuredPath, @"/+", "\\")) — on Linux this branch, if ever hit, produces a broken all-backslash
path. It's otherwise a no-op that normalizes to /. This is isolated to that one helper — the actual
upload/store/serve path, MibFileObjectWorkflow.GetStorage(storage)
(MibServerApi/MediaiBox.Cms.Api.Workflow/MibFileObjectWorkflow.cs:281-314; confirmed the only 2 production
CreateDisk call sites in the repo are this one and StorageAreaAccessHelper.cs:48) passes storage.Path
unmangled straight into StorageFactory.CreateDisk(storage.Path). So the SlashConverter bug cannot affect an
actual file write/read/serve — only this one extension-detection helper.
What's actually deployed (dev267, confirmed via Rancher). mib-file-server-api (FileManagement MS, image
...mib-cms-microservices-filemanagement:6.0.107) in namespace dev267 runs with storageType=disk for every
configured area — confirmed straight from the live mibservermediaconfig ConfigMap:
MibServerMediaConfig_storageArea0_STORAGETYPE=disk, _path=/storages/storageArea0;
..._storageArea1_STORAGETYPE=disk, _path=/storages/storageArea1 (both active=true). The pod's env also carries
MIBSTORAGELIB2CONFIG_DEFAULT_TYPE=disk, _DISK_PATH=/storages/tsv/, _DISK_TEMP=/storages/tsv/ and
MIBSERVERMEDIACONFIG_TEMP_PATH=./storage/temp/_TEMP_ACTIVE=true — i.e. Disk is the actual production storage
type in this environment, not a theoretical fallback.
Whether /storages/storageArea<N> and /storages/tsv/ are backed by a persistent/shared volume (NAS/PVC) or are
per-pod-local/ephemeral is not determinable from the application repos — the deploy/infra manifests live in a
separate repo not covered here. One suggestive clue: the MIBMEDIACONFIG_STORAGEAREA<N>_DEFAULT values point at
.../dev267/fileserver/config/mib/nas/storageArea<N> — the nas segment hints the areas are meant to be
NAS-backed, though that is not a direct volume-mount observation.
By contrast, the repo's own local dev quickstart
(MibMicroServices/DockerPackaging/FileManagement/docker-compose.yml) configures
MIBSERVERMEDIACONFIG_STORAGEAREA0_PATH=storage, _TEMP_PATH=temp, MIBSTORAGELIB2CONFIG_DISK_PATH=storage — all
relative paths, and only ./logs:/app/logs is bind-mounted — so in that specific compose file, uploaded files
are explicitly ephemeral (lost on container recreation). Open question, flagged rather than asserted: confirm
with the infra/deploy repo (not cloned here) whether dev267's /storages/* paths sit on a mounted PVC/NAS share.
No Kubernetes manifests or Helm charts were found in any of the four MIB repos cloned for this investigation
(MibServerApi, MibServer3, MibMicroservices, MibAuthorizationServer) — deploy/infra config lives in a
separate repo not accessed here.
Serving + resizing
Download via DownloadController (/api/v1/download/file/…) / DownloadV2 (stream). No automatic variant
generation — an optional external resizer is configured by resizerUrl (MibCmsFrontEndServerBaseConfig.cs:113,
a template interpolating {imageUrl}/{width}/{height}, default {imageUrl}). No
resizerUrl → the raw StorageArea URL is served.
Wire an image field (steps)
- A file-capable related type — a media type (e.g.
IMAGES) withadm_fileextensionslinks (that's what makesHasFile=true). - Declare the field —
.WithAdmField("Poster", AdmFieldType.Image, relatedTableName: "IMAGES"). - Configure StorageAreas —
storageArea<N>blocks inMibServerMediaConfig.mibconfig(mib flattens.mibconfig→ env; seemib-runtime-config). - Upload — POST
/upload→ PUT the bytes → PUT/upload/check→ PUT/upload/content/{mt}/{id}to bind.
Gotchas (grounded)
- The related type must be file-capable — lose its
adm_fileextensionslinks andHasFileflips false → the upload UI disappears (and the meta cache TTL delays the change). - No built-in variants/thumbnails — sizing is an external
resizerUrlservice;Previewreuses the same source. StorageAreaIdis baked intoEntityFileLink— moving assets between areas needs a migration.- Orphaned temp files — a finalize that fails mid-chunk can leave temp uploads (no visible auto-cleanup).
- RBAC — an Image field inherits the related type's read/write permissions; a read-only related type blocks upload.
- StorageArea config is duplicated, not shared — MibServerApi keeps its own copy of
MibServerMediaConfig/MibMediaConfig/ storage credentials, independent from the FileManagement microservice's. Add a StorageArea in one place and forget the other, and uploads succeed while URL resolution or direct reads on the API side break. See MibServerApi's own storage config above. - An unrecognized/misspelled
storageTypesilently becomes Disk in every StorageArea/BestServer/Temp path (both services) — no exception, no log. The one exception is FileManagement'sGetDefault()path (pre-StorageArea upload/download), which throwsStorageTypeDefaultNotFoundExceptioninstead. See Disk storage above. - BestServer isn't a pure "most free disk" pick — the first Azure/Aws/UNC-typed active area short-circuits the whole comparison; local-disk free-space comparison only runs if no cloud/UNC area exists. See Disk storage above.
Discover
mib get building-block.file-upload · mib get recipe.image-field ·
mib get building-block.filemanagement-server-config (MibServerApi's duplicated storage config) ·
mib get building-block.disk-storage-flow (Disk fallback, BestServer, Linux portability, dev267 deployment) · field
wiring: building-block.datamodel-ddl.