Upping partly from code of the upload system