Test get error when idparent param is missing from upload.
Test behaviour when upload file is missing or empty. Tidy code.