Instance Property


The filename for the asset resource being created.


@property(nonatomic, copy) NSString *originalFilename;


You can use this property to track the original name of the file from which you import an asset resource even if you use the addResourceWithType:data:options: method to create a resource from data instead of from a file. After creating the asset, this information is available in the originalFilename property of the corresponding PHAssetResource object.

If you do not specify a value for this property and are using the addResourceWithType:fileURL:options: method to create a resource, Photos infers the filename from that method’s fileURL parameter. Otherwise, Photos automatically generates a filename.

See Also

Describing a New Asset Resource


The uniform type identifier for the resource.