File saves automatically after upload.

Signed-off-by: Ljubomir Papuga <papuga.yu@gmail.com>
Formatting needs to be fixed