Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

In Mountain Lion, iCloud is "integrated" in every program. So when i open or save a document i have an iCloud option available.

But where are the documents? Are they local and get syned every now and then, or is it WebDAV or just http?

The documents load very fast, and there seems to be no delay.

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

iCloud documents are cached locally in ~/Library/Mobile Documents (~ represents your home folder).

They're synchronized via HTTPS (even when the application is closed) and the files (some of them, at least), are stored on Amazon S3.

When opening, editing and saving a TextEdit document from iCloud, these requests are made :

  • POST request to https://p**-ubiquity.icloud.com/ub/*********/rwsync/********…
  • POST request to https://p**-content.icloud.com/*********/authorizePut
  • PUT request to Amazon S3
  • POST request to https://p**-content.icloud.com/*********/putComplete
  • POST request to https://p**-ubiquity.icloud.com/ub/*********/rwsync/********…
  • POST request to https://p**-ubiquity.icloud.com/ub/*********/rosync/********…
share|improve this answer
    
Amazon S3? Typo? –  stuffe Jul 27 '12 at 8:50
    
No, I'm talking about Amazon S3. –  olivier Jul 27 '12 at 8:53
    
OK, sorry for confusion. Seemed odd is all. –  stuffe Jul 27 '12 at 8:56
    
How do you get this information? WireShark? Or are there any documents? –  2DD8847 Apr 3 '13 at 16:59
    
I used Charles. But it is probably doable as well with WireShark. –  olivier Apr 4 '13 at 3:53
add comment

Not sure if it's the same in Mountain Lion, but in Lion, iCloud documents are stored in ~/Library/Mobile Documents.

share|improve this answer
add comment

For clarity, existing answers state that the documents are stored at location X - whilst both are correct, please ensure you understand that they are merely cached in those locations, and if the iCloud synchronisation process detects a more up to date version in the cloud, then it will have to get it from there. In addition, for speed iCloud transfers META properties about the files it know about per application before loading content, which enables it to more speedily show you what is available.

share|improve this answer
    
You're right, I edited my answer to clarify that. Thanks! –  olivier Jul 27 '12 at 8:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.