Adding a function upload_all_resources