adding debugging to see why upload is failing, also added true param to upload call