Added  thread_safe to upload on Heroku