core: fix for upload from url.
(cherry picked from commit d6114ba251dd0dd876af165a7601b12f23fb5bda)