Properly resolve local file upload URLs