uploadcare / uploadcare-node

Node module for uploadcare.com
MIT License
37 stars 21 forks source link

How to get group id from uploading file #25

Open aquaductape opened 2 years ago

aquaductape commented 2 years ago

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 commented 2 years ago

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.