Attachment .present() meaning in runtime

How does the .present() method on an attachment function in the runtime? I have noticed that even if the attachment has a uploaded status in the backend that it still returns false in the runtime.

On the runtime, present() returns true if the data has been downloaded to the device. There’s no currently no direct way to determine whether or not it has been uploaded yet.

Note: this is a little different from CloudCode, where present() returns true if the data has been uploaded. So if you really need to access that, you currently have to do that via CloudCode

1 Like