reupload, deleting array contents by making .length = 0 instead of splicing