only attempt to upload if url is valid