filestack / filestack-react

Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
164 stars 40 forks source link

Unhelpful warning about background upload #75

Closed mpoisot closed 4 years ago

mpoisot commented 4 years ago

I'm forcing cropping and I always see this message in the console. I'm using filestack-react v3.1.0, which is pulling in filestack-js v3.5.0.

Upload in background can be enabled only when cropper is disabled

Here's how I'm using the FileStack component:

<Filestack
  apikey={FilestackApiKey}
  action="pick"
  actionOptions={{
    accept: "image/*",
    allowManualRetry: true,
    fromSources: ["local_file_system"],
    transformations: {
      circle: false,
      crop: {
        aspectRatio,
        force: true,
      },
    },
    customText: {
      "Select Files to Upload": "Select Image to Upload",
    },
  }}
  onSuccess={data => onAddImg(data.filesUploaded[0])}
/>
pcholuj commented 4 years ago

Hi this warning will be disabled on next release