Button 'Upload Template' correctly work now

Fixes: bug #1200245

Change-Id: Icf8c48922244cb20ba68a4c784ae312c64773750