Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component just displays "folder is empty" for all integrations without ever trying to connect. #115

Open
phlare opened this issue Apr 20, 2021 · 1 comment

Comments

@phlare
Copy link

phlare commented Apr 20, 2021

Locally, everything works great, runs as expected, facebook, instagram, google drive all do their own Oauth flow to connect and then i can use files from there.

on staging and production, however (i'm using npm shrinkwrap, so it shouldn't be a version issue) i instead just get a message that says "The folder is empty" on any of these integrations. local file works, url works, imagesearch works, but facebook, instagram, and google drive connect all give me this error without ever trying to authorize a connection.

(screenshot taken with just "googledrive" in fromSources and not also "facebook" and "instagram")
Screen Shot 2021-04-20 at 10 03 04 AM

const filestackOptions = {
  accept: 'image/*',
  maxFiles:  1,
  fromSources: ["local_file_system", "url", "imagesearch", "facebook", "instagram", "googledrive"],
  storeTo: {
    location: 'gcs',
  },
  imageMax: [800, 600],
  transformations: {
    crop: true,
    rotate: true
  }
};

<PickerOverlay
    apikey={filestackKey}
    actionOptions={filestackOptions}
    onSuccess={this.imageUploaded}
    customRender={({ onPick }) => (
      <div
        className=""
        ref={(input) => { self.fileStackRef = input; }}
        onClick={onPick}
      />
    )}
  />

dependency versions

"react": "^15.6.2",
"filestack-js": "^3.23.1",
"filestack-react": "^3.2.0",

Note: I realize i'm not using the latest version, and i'd love to update, but at the moment it's a lot of work migrating my entire app up to react 16. If this is the entire issue, then so be it.

@funkytek
Copy link

Have the same problem but with the latest versions of the library and react

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants