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

403 (Forbidden) from ReactFilestack component using good API key. #72

Closed WriterZephos closed 5 years ago

WriterZephos commented 5 years ago

This is my react component: <ReactFilestack apikey={this.props.fp_api_key} onSuccess={(res) => console.log(res)} componentDisplayMode={{ type: 'button', customText: 'Attach Files', customClass: 'btn btn-info btip pull-right' }} /> Everything works until I hit the upload button, then I get a 403 error. The API key is one that we currently use with the filestack-rails gem, which seems to call a different api endpoint going by the network tab in dev tools.

How do I get this api key to work in the react component?

Thanks.

WriterZephos commented 5 years ago

I resolved the issue. Turns out we had security enabled and I didn't realize that. Apologies.