@mifi Thanks for looking into it. I’m currently working on my local machine, so I’m not sure how could I give my setup for reproducing. But I could give you some details of my setup:
Here is how my javascript look like:
<script type="module">
import {
Uppy,
Dashboard,
Webcam,
XHRUpload,
GooglePhotosPicker,
Form
} from 'https://releases.transloadit.com/uppy/v4.13.4/uppy.min.mjs'
const uppy = new Uppy({ debug: true, autoProceed: false })
.use(Dashboard, {
target: '#photo-uploader',
inline: true,
showProgressDetails: false,
width: '100%'
})
.use(GooglePhotosPicker, {
companionUrl: 'http://localhost:3020',
clientId: 'my_client_id',
companionCookiesRule: 'include',
withCredentials: true,
})
.use(Webcam, { target: Dashboard })
.use(XHRUpload, {
endpoint: 'my_target_url',
fieldName: 'file[0]',
withCredentials: true,
})
.use(Form, {
target: '#fsupload',
});
uppy.on('success', (fileCount) => {
console.log(`${fileCount} files uploaded`)
})
uppy.on('complete', (fileCount) => {
console.log('Completed !', fileCount);
updateCartBar();
});
</script>
I’m not sure, maybe there is some undocumented things I should be aware of? Because right now it looks like it downloads a preview image from Google Photos, not the original one. For example, the photo I download directly from Google Photos is 3000x4000 resolution, but the one I receive to my destination endpoint is 300x400.