Disable delete by extension in photo upload