So far it's impossible to access the ID of an image right after upload, it's only used internally by the library, but not returned to "the outside" (the code that uses the library)
It could be useful for several reasons:
for storing it in some database and accessing the pictures later
for downloading the picture
(in my case) for performing checks on the uploaded image to see the upload went fine and the uploaded data is not corrupted
A solution would be to include it in some struct returned by the tryUpload method.
I'm working on that, tell me what you think about it.
My plan is to return a struct that contains only the ID, since the URL can be deduced from the ID I'll add a method to re-generate it from the ID.
So far it's impossible to access the ID of an image right after upload, it's only used internally by the library, but not returned to "the outside" (the code that uses the library) It could be useful for several reasons:
A solution would be to include it in some struct returned by the tryUpload method.
I'm working on that, tell me what you think about it. My plan is to return a struct that contains only the ID, since the URL can be deduced from the ID I'll add a method to re-generate it from the ID.