GrapesJS / filestack

Enable Filestack uploader inside the Asset Manager
BSD 3-Clause "New" or "Revised" License
22 stars 28 forks source link

Unauthorised error, unable to upload from My Device #4

Closed faizansaiyed closed 6 years ago

faizansaiyed commented 6 years ago

Hey @artf I've integrated FileStack in GrapesJS editor. Other things work fine except, I get this error and not able to upload file from My Device option. Anything missing? screenshot from 2017-12-25 12-49-22

Here is my code:

editor = grapesjs.init({
            plugins: [ [other-plugins ... ], 'gjs-plugin-filestack' ],
            pluginsOpts: {
                'gjs-plugin-filestack': {
                    'key': [my-key],
                    'filestackOpts': {
                        'fromSources':["local_file_system","url","imagesearch","facebook","instagram","googledrive","dropbox","flickr","onedrive"]
                    }
                }
            },
.....
});

One more error is : screenshot from 2017-12-25 12-46-56

artf commented 6 years ago

@fsaiyedOB your key is wrong, look at the url apikey=my-key

faizansaiyed commented 6 years ago

I'm passing my key provided from FileStack, just for privacy, I've removed from the screenshot. I've also specified that everything is working fine except for My Device option. If the key is wrong, nothing will work.

artf commented 6 years ago

@fsaiyedOB try to create an upload button without grapesjs, looks like something wrong with FileStack itself

faizansaiyed commented 6 years ago

Custom upload button works fine without any errors, but I want it inside Grapes Editor, in assets manager modal. image

artf commented 6 years ago

yeah but from your errors seems like there is an issue with files from FileStack