gpt4 book ai didi

audio - 如何在Parse.com上清除声音数据?

转载 作者:行者123 更新时间:2023-12-03 00:16:28 25 4
gpt4 key购买 nike

在Parse.com上,在Class I中,有一列是AUDIO数据。
我的问题是:
删除ROW(使用Cloud函数)时,AUDIO数据是否会自动完全删除?
还是我需要做一些特别的事情(之前或之后)以清除AUDIO数据?

为了使上下文更清晰,这里是我用来上传声音数据的代码类型:

    PFFile *parse_Sound;
NSData *soundData = [NSData dataWithContentsOfURL:myURL];
parse_Sound = [PFFile fileWithName:@"VOICE"
data:soundData];
[parse_Sound saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
……….
}];

然后:
    parse_Object = [PFObject objectWithClassName:@"PeraSentence"];
[parse_Object setObject:parse_Sound forKey:@"AUDIO"];
………

最佳答案

删除行时,不会删除文件。您需要进入“设置”>“常规”,然后单击“清理文件”按钮。

删除数据库中所有指针未引用的文件。

As you know, files can be referenced to from file-type columns in your objects. They can be pointed to in this manner by one or many different objects, and so they are not deleted automatically when any of the objects that refer to them are deleted. The Clean Up job will delete any files that have no such references to them.

As a safeguard, any files uploaded in the previous hour won't be deleted, regardless of how many objects point to them. This provides a grace period to avoid deleting a file that was recently uploaded but your app has not added a reference to it.

This Clean Up job should be used carefully. If your app is not using the file-type column to refer to files, and instead is copying the CDN URL to a string-type column, this will not count as a reference and the file will be deleted if it has no other file-type pointers to it.



资料来源: https://parse.com/questions/clean-up-files

关于audio - 如何在Parse.com上清除声音数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29275948/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com