[stable5] Fix public upload case

Fix Anonimous upload  for stable5 
Ref #1254