fixed post to file api