upload files script fix