Giter Club home page Giter Club logo

Comments (5)

aduh95 avatar aduh95 commented on August 21, 2024

Can you clarify if there are some steps that leads to that error? Bonus points if you're able to provide a full repro e.g. using https://stackblitz.com/edit/vitejs-vite-zaqyaf?file=main.js

from uppy.

dev-android1 avatar dev-android1 commented on August 21, 2024

Thanks for the reference.
we are getting an error when we click on uppy upload button. please refer screenshot -

image (1)

The code snippet which we tried is below. It was working before june 2024, but due to new uppy packages, this functionality stopped working.

import { Uppy } from '@uppy/core';
import AwsS3Multipart from '@uppy/aws-s3-multipart';
import { Dashboard } from 'uppy';
import { GoogleDrive } from 'uppy';
import OneDrive from '@uppy/onedrive';
import { Dropbox } from 'uppy';
import Url from '@uppy/url';
 
customFunction() {
    this.uppy = new Uppy({
      debug: true,
      autoProceed: false,
      onBeforeFileAdded: (currentFile, files) => {
		//custom validation code here
      }
    })
      .use(Dashboard, {
        trigger: ".UppyModalOpenerBtn",
        inline: true,
        target: ".DashboardContainer",
        replaceTargetContent: true
      })
      .use(GoogleDrive, { target: Dashboard, companionUrl: customUrl })
      .use(Dropbox, { target: Dashboard, companionUrl: customUrl })
      .use(Url, { target: Dashboard, companionUrl: customUrl })
      .use(OneDrive, { target: Dashboard, companionUrl: customUrl })
      .use(AwsS3Multipart, {
        limit: 6,
        companionUrl: customUrl,
      });
 
    this.uppy.on("complete", result => {
      this.isFileUploading = true;
      console.log("successful files:", result.successful);
      console.log("failed files:", result.failed);
    });
  }

Our system has Angular 15, can we use updated uppy dependencies in this without upgrading Angular to the latest?

from uppy.

dev-android1 avatar dev-android1 commented on August 21, 2024

Any update on this?

from uppy.

AbhishekSankhyan avatar AbhishekSankhyan commented on August 21, 2024

I am also facing the similar issue. Is there any update on this?

from uppy.

Murderlon avatar Murderlon commented on August 21, 2024

As mentioned in the migration guide, you are using companionUrl but you should be setting endpoint for @uppy/aws-s3.

https://uppy.io/docs/guides/migration-guides/#uppyaws-s3-and-uppyaws-s3-multipart

from uppy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.