fixed some file POST stuff