Adds check for POST variables to upload