form.append('audio', { uri: Platform.OS === 'ios' ? uri.replace('file://', '') : uri, name: name || 'upload-file', type: mime || 'application/octet-stream',
Use the correct MIME type if available, otherwise fallback to "application/octet-stream",This ensures the file always has a valid type during upload