Create a new key before upload a file

Avoid setting wrong metadata