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

Invalid Picker Params when uploading with tags #105

Open
highri5e opened this issue Dec 4, 2020 · 6 comments
Open

Invalid Picker Params when uploading with tags #105

highri5e opened this issue Dec 4, 2020 · 6 comments

Comments

@highri5e
Copy link

highri5e commented Dec 4, 2020

Trying to add tags option to the actionOptions results in the Invalid Picker Params error.

  711 | constructor(client: Client, options?: PickerOptions) {
  712 |   const validateRes = getValidator(PickerParamsSchema)(options);
  713 | 
> 714 |   if (validateRes.errors.length) {
      | ^  715 |     throw new FilestackError(`Invalid picker params`, validateRes.errors, FilestackErrorType.VALIDATION);
  716 |   }
  717 | 
<PickerOverlay
  apikey="key"
  accept: "image/*",
  maxFiles: 1,
  pickerOptions:{{
    uploadConfig: {
    	tags: {
     	  foo: bar
      }
    },
}}
/>
@jakubpeksa
Copy link

Is it still happening with the newest 4.0 version?

@highri5e
Copy link
Author

Yes it does...

@highri5e
Copy link
Author

highri5e commented Jan 7, 2021

Hey any updates on this? I'm a client on a Filestack paid plan and could use this feature.

@jakubpeksa
Copy link

That's filestack-js issue, we are currently fixing it

@konradkrk
Copy link
Contributor

@highri5e
check:
<PickerOverlay apikey='apikey' pickerOptions={{accept:'image/*', maxFiles:1, uploadConfig: {tags: {foo: 'bar'}} }}/>

remember: foo: 'bar' <- must be string

@highri5e
Copy link
Author

@konradkrk Thanks.

How did I overlook this?
It does not error anymore.
The response does not return the upload_tags property though so not sure if it actually works as intended.

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

3 participants