fix photo upload rejection