how do I keep my photo uploads to a https:// url

When I upload my media they are given a http:// url. I have an ssl on my site and want to upload my media so it keeps the https:// url. How do I do that?