check for post before checking for files