How do I set up a foil file?

Upload your CMYK artwork plus a foil mask: a same-size vector file with foil areas in 100% K and everything else white. Make one mask per foil side.