You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a problem implementing Uppy at the top level most component, so that even if I close a child component, the upload still continues uploading to the server. Getting Id error and a number of other funny behaviours. See React code below:
Utility file called uppyAudioVideo.js
import React from "react";
import store from "../store";
import Uppy from '@uppy/core';
import ReduxStore from '@uppy/store-redux';
const uppyAudioVideo = Uppy({
store: ReduxStore({
store: store
}),
debug: true,
autoProceed: false,
restrictions: {
maxFileSize: 2000000000,
maxNumberOfFiles: 10,
minNumberOfFiles: 1,
allowedFileTypes: ['audio/*', 'video/*']
},
});
export default uppyAudioVideo;
Parent Component
import uppyAudioVideo from '../utility/uppyAudioVideo'; // attempt to initialise the component from the parent
...
this.uppy.on('complete', result => {
this.uppy.on('file-added', result => {
...
I am trying to initialise a single instance the plugin as high up in the component tree that I can go, so that when I close the Child Component modal, the files still upload. Though no matter how many things I try, I always get an Error, your plugin must have and id. Of course I have tried adding an id field but nothing has worked. I have tried initiating uppy with a singleton in many ways, that hasn't worked and I am still getting the same error. This error occurs only once I close and re open the modal again.
Any help greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hi Aturi. Thanks! Yes I started to use the React components and managed to get it working. This is how I got it working: #1329 (comment). Your opinion on how I got it working would be greatly appreciated. Now the only problem I have is with Tus and fingerprint removal. It is not working as expected. See this problem #1327
Having a problem implementing Uppy at the top level most component, so that even if I close a child component, the upload still continues uploading to the server. Getting Id error and a number of other funny behaviours. See React code below:
Utility file called uppyAudioVideo.js
Parent Component
Child Component - Modal
I am trying to initialise a single instance the plugin as high up in the component tree that I can go, so that when I close the Child Component modal, the files still upload. Though no matter how many things I try, I always get an Error, your plugin must have and id. Of course I have tried adding an id field but nothing has worked. I have tried initiating uppy with a singleton in many ways, that hasn't worked and I am still getting the same error. This error occurs only once I close and re open the modal again.
Any help greatly appreciated.
The text was updated successfully, but these errors were encountered: