File uploads

1. I fixed the file upload issue
2. I think the oauth token should not appear in the log files, so I added a method to automatically remove it before it gets logged.