(primary: ServiceType, fileName: string)
| 1254 | } |
| 1255 | |
| 1256 | function buildUploadOrder(primary: ServiceType, fileName: string): ServiceType[] { |
| 1257 | const disableFallbacks = Boolean((settings.store as { disableFallbacks?: boolean; }).disableFallbacks); |
| 1258 | const effectivePrimary = normalizePrimaryService(primary, fileName); |
| 1259 | |
| 1260 | const order: ServiceType[] = [effectivePrimary]; |
| 1261 | if (disableFallbacks) { |
| 1262 | return order; |
| 1263 | } |
| 1264 | |
| 1265 | for (const fallback of getFallbackServices()) { |
| 1266 | if (fallback !== effectivePrimary && canServiceHandleFile(fallback, fileName)) { |
| 1267 | order.push(fallback); |
| 1268 | } |
| 1269 | } |
| 1270 | |
| 1271 | return order; |
| 1272 | } |
| 1273 | |
| 1274 | function finalizeUploadedUrl(url: string): string { |
| 1275 | if (!settings.store.stripQueryParams) { |
no test coverage detected