Upload videos from gallery using Photos framework
问题 What is the best way to upload videos from gallery using Photos framework? Before I used ALAssetRepresentation and next method: - (NSUInteger)getBytes:(uint8_t *)buffer fromOffset:(long long)offset length:(NSUInteger)length error:(NSError **)error; this allowed to upload file without first copying it to app temp directory. Don’t see any alternatives in Photos framework. Only way seems to use AVAssetExportSession -> export to local directory -> upload, but this requires additional storage