uppy: Undefined "uploadRemoteFile" when using RemoteSources
Initial checklist
- I understand this is a bug report and questions should be posted in the Community Forum
- I searched issues and couldn’t find anything (or linked relevant results below)
Link to runnable example
No response
Steps to reproduce
I am using Svelte & SvelteKit with Uppy set up in an action:
const uppy = new Uppy({
debug: process.env.NODE_ENV == 'development' ? true : false,
restrictions: {
allowedFileTypes: ['.pdf', '.docx'],
},
locale: $locale === 'et' ? Estonian : undefined,
});
function uploader(element: HTMLDivElement) {
uppy.use(Transloadit, {
assemblyOptions: {
fields: {
userId: userId,
residenceId: residenceId,
},
params: {
auth: { key: PUBLIC_TRANSLOADIT_API_KEY },
template_id: PUBLIC_TRANSLOADIT_TEMPLATE_ID,
notify_url: PUBLIC_API_BASE_URL,
},
},
});
uppy
.use(Dashboard, {
inline: true,
target: element,
fileManagerSelectionType: 'both',
singleFileFullScreen: false,
})
.use(RemoteSources, {
target: Dashboard,
companionUrl: COMPANION_URL,
companionAllowedHosts: COMPANION_ALLOWED_HOSTS,
sources: ['GoogleDrive', 'OneDrive', 'Dropbox'],
})
.use(GoldenRetriever, { serviceWorker: true });
}
I tried to revert to previous versions but still had the same issue. Current versions:
"@uppy/core": "^3.7.1",
"@uppy/dashboard": "^3.7.1",
"@uppy/golden-retriever": "^3.1.1",
"@uppy/remote-sources": "^1.1.0",
"@uppy/transloadit": "^3.4.0",
"@uppy/webcam": "^3.3.4",
"@uppy/xhr-upload": "^3.5.0",
before our app update yesterday (tried, the issue still persists):
"@uppy/core": "^3.6.1",
"@uppy/dashboard": "^3.6.0",
"@uppy/golden-retriever": "^3.1.1",
"@uppy/remote-sources": "^1.1.0",
"@uppy/transloadit": "^3.3.2",
"@uppy/webcam": "^3.3.4",
"@uppy/xhr-upload": "^3.4.2",
Expected behavior
Should upload files from Google or Dropbox.
Actual behavior
Console error and file is not uploaded.
[Uppy] [16:21:39] TypeError: can't access property "uploadRemoteFile", file.remote.requestClient is undefined
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- fix uploadRemoteFile undefined for some reason, only when testing locally using VITE_COMPANION_URL=https://api2.transloadit.com/companion only we get this error... i'm thinking for some reason, the r... — committed to transloadit/uppy by mifi 7 months ago
- fix uploadRemoteFile undefined (#4814) * fix uploadRemoteFile undefined for some reason, only when testing locally using VITE_COMPANION_URL=https://api2.transloadit.com/companion only we get this... — committed to transloadit/uppy by mifi 7 months ago
created a pr #4814
🥹