modifiled upload-assests.lua