From 09e7232a3d9782757495a19efcac651d49fc55f6 Mon Sep 17 00:00:00 2001 From: tmk1991 Date: Sat, 19 Oct 2019 12:14:18 -0400 Subject: [PATCH] Update CDVCamera.m cleanup for bugfix https://github.com/apache/cordova-plugin-file/issues/346 https://github.com/apache/cordova-plugin-camera/issues/506#issuecomment-544104741 --- src/ios/CDVCamera.m | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index bec79e95b..24fc382d7 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -514,22 +514,6 @@ - (CDVPluginResult*)resultForVideo:(NSDictionary*)info { NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] absoluteString]; - -// NSArray* spliteArray = [moviePath componentsSeparatedByString: @"/"]; -// NSString* lastString = [spliteArray lastObject]; -// NSUInteger location = [lastString rangeOfString:@"."].location + 1; -// NSString *substring = [lastString substringFromIndex:location]; - -// NSError *error; -// NSFileManager *fileManager = [NSFileManager defaultManager]; -// NSString *documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"tmp"]; -// NSString *filePath = [documentsDirectory stringByAppendingPathComponent:substring]; - -// NSURL *videoURL = info[UIImagePickerControllerMediaURL]; -// [[NSFileManager defaultManager] copyItemAtURL:videoURL -// toURL:[NSURL fileURLWithPath:filePath] -// error:&error]; -// [fileManager copyItemAtPath:moviePath toPath:filePath error:&error]; return [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:moviePath]; }