Getting URL file du...
 
Notifications
Clear all

Getting URL file during upload

3 Posts
2 Users
0 Reactions
662 Views
(@jackmariani)
Posts: 11
Eminent Member
Topic starter
 

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.

 
Posted : 03/10/2014 4:33 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

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

 
Posted : 03/10/2014 5:12 pm
(@jackmariani)
Posts: 11
Eminent Member
Topic starter
 

Thank you very much!

 
Posted : 03/10/2014 5:29 pm
Share: