API to store files