Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

How to get group id from uploading file #25

Open
aquaductape opened this issue Jun 28, 2022 · 1 comment
Open

How to get group id from uploading file #25

aquaductape opened this issue Jun 28, 2022 · 1 comment

Comments

@aquaductape
Copy link

aquaductape commented Jun 28, 2022

How to create group id from uploading file

For example, using UploadCare widget, when you have data-multiple property enabled, the input value is set to group id.

How do you get group id when uploading files?

uploadcare.file.fromUrl('http://host/image/path', function(err,res){
        // How to get group id?
    })
@nd0ut
Copy link
Member

nd0ut commented Jul 3, 2022

Hey @aquaductape,

unfortunately, this package isn't able to create groups from uploaded files or non-binary sources. I suggest you to use @uploadcare/upload-client - uploadFileGroup method is what you need. You can use both packages if you need REST API too.

Now I'm working on the brand new REST API client. First alpha is almost done.

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

No branches or pull requests

2 participants