Fix headers types
Create all missing directories when uploading file
Improve docs for production usage