Search code examples
iosquickblox

QuickBlox QBContent lifetime or autodeleting


can you help me with upload file on quickblox. I'm doing it like

[QBContent TUploadFile:data
                fileName:@"Image"
               contentType:@"image/png"
              isPublic:YES
              delegate:self]; 

But if i send id to other user. He can't delete file. I think file can be deleted only creator? How can I make deleting file on other side? Or can I just say to file to delete for example after 3 minutes? Because I can't do this with QBCBlob :(

Could some one help me? Thanks!


Solution

  • Content File can delete only its owner, you're right.

    Why you need to delete it? It's not necessary to delete files.

    If you need to delete files - you can use CustomObjects module for this http://quickblox.com/developers/SimpleSample-customObjects-ios#Files

    Custom Objects has Permissions API http://quickblox.com/developers/SimpleSample-customObjects-ios#Permissions , so you can set proper permissions and delete record by any user