Fixed relative url issue in ajax upload.