Issue #387 - Undefined variable when uploading photo with basic uploader