Ajax upload fix