fixed uploading bug so that you can upload a file to app/tmp/ and then view it