title: iOS Save file to non-private directory
body: <p>Right now I am working on a project which uploads files from the system and I was wondering if it is possible to save NSData to a location that is not private. Basically when I save data right now the cooresponding url looks something like this:</p>
  
  <pre><code>file:///private/var/mobile/Containers/Data/Application/.../image.jpg
  </code></pre>
  
  <p>But when I get files back from the UIImagePicker the URL looks like this:</p>
  
  <pre><code>file:///var/mobile/Containers/Data/Application/.../image.jpg
  </code></pre>
  
  <p>How can I (if it is possible) save data to a directory not under private?</p>
  
  <p>Just for reference this is the code I have to move files so far:</p>
  
  <pre><code>- (NSURL *)moveFileToTemporaryMemory:(NSURL *)url {
    NSError *readingError, *writingError;
    NSString *fileName = url.lastPathComponent;
    NSURL *tempURL = [[NSURL fileURLWithPath:NSTemporaryDirectory()] URLByAppendingPathComponent:fileName];
    NSData *data = [NSData dataWithContentsOfURL:url options:NSDataReadingMappedIfSafe error:&amp;readingError];
    [data writeToURL:tempURL options:NSDataWritingAtomic error:&amp;writingError];
    return tempURL;
  }
  </code></pre>