uploads for big files fixed

otherwise we get a memory_size exception