Revised upload button method