For how long an uploaded file stays available if it is not stored permanently?

What's the logic for how long an uploaded image to will exist? Some images I uploaded over the past day or so have disappeared.

All files are available via for 24 hours if they aren't stored. Stored images are available unless removed explicitly.