Uppy: Aws s3 upload does not work after upgrading to `1.0.0`

Created on 7 May 2019  路  2Comments  路  Source: transloadit/uppy

Hello,

I upgraded uppy from 0.30.3 to 1.0.0 but aws-s3 integration does not work anymore with the same code. here is the example:

import React from "react";
import Uppy from "@uppy/core";
import AwsS3 from "@uppy/aws-s3";
import { DragDrop, ProgressBar } from "@uppy/react";

import "@uppy/core/dist/style.css";
import "@uppy/progress-bar/dist/style.css";
import "@uppy/drag-drop/dist/style.css";

const uppy = Uppy({
  meta: { type: "document" },
  autoProceed: true
});

console.log(AwsS3)
uppy.use(AwsS3, {
  serverUrl: "/"
});

const FileUploader = () => {
  return (
    <div>
      <ProgressBar uppy={uppy} hideAfterFinish={false} />
      <DragDrop
        uppy={uppy}
        locale={{
          strings: {
            dropHereOr: "Drop here or %{browse}",
            browse: "browse"
          }
        }}
      />
    </div>
  );
};
Companion

Most helpful comment

Ok, I think I have to change serverUrl with companionUrl

All 2 comments

Ok, I think I have to change serverUrl with companionUrl

I had the same problem and replaced serverUrl by companionUrl and it worked as expected, trying to ping presign by adding s3/params to the server adress.

Actually I was wondering if I should use the AWS-S3 function getUploadParameters (file) to fetch the presign enpoint. Especially because Companion is not part of my uppy bundle..

Was this page helpful?
0 / 5 - 0 ratings