(file)
| 596 | } |
| 597 | |
| 598 | function applyResumableRelativePath(file) { |
| 599 | if (!file || typeof file !== 'object') return; |
| 600 | const rel = file.webkitRelativePath || file.customRelativePath || ''; |
| 601 | if (rel && (!('relativePath' in file) || !file.relativePath)) { |
| 602 | Object.defineProperty(file, 'relativePath', { |
| 603 | value: rel, |
| 604 | writable: true, |
| 605 | configurable: true |
| 606 | }); |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | function normalizeUploadPath(raw) { |
| 611 | return String(raw || '') |
no outgoing calls
no test coverage detected