Move filesize into upload function.