handle anonymous upload to reshared folder

fixes #3942 

@butonic @MTGap @icewind1991 @schiesbn @karlitschek THX

EE relevant - backport necessary