Hi, I'd like to know if it's possible to get url file during upload.
For example I've the following code:
IEnumerator UploadFile(byte[] file) {
busy = true;
Debug.Log ("Upload file start, " + busy);
CBManager.instance.UpdateUserFile(new CBUserFile(), file);
while (busy)
{
yield return null;
}
Debug.Log("Upload file completed!");
//Is it possible to get the CBUserFile.url from here?
}
Or maybe I could take it from here:
void OnUserFileUpdated (bool success, string error) {
Debug.Log( "File uploaded: " + success );
if (!success)
Debug.Log("ERROR: " + error);
//Is it possible to get the CBUserFile.url from here?
busy = false;
}
If it's not possible I'll get it using OnUserFilesLoaded.
Thank you very much.
Yes, I forgot to initialize the CBUserFile object passed to the function UpdateUserFile, I'll send you the changes by PM and will include in the next official update.
FRANCESCO CROCETTI @ SKARED CREATIONS
Thank you very much!