Updated for http paths
Forced correct url for uploading media