Set headers instead of using copy

The copy command does not work for files bigger than 5GB, therefore a
different solution is needed.