uploadify 401 unauthorized error with rails 3

Installed uploadify_rails3 gem, while submiting the form all params
are correct but I am getting error
"Completed 401 Unauthorized in 0ms" which prevents me from doing any
further steps.

If any of you has faced such situation please send me any solution to
get rid of it.

Thanks in advance