no anonymous upload on files only folders

fixes #3934 

@schiesbn @butonic @icewind1991 @MTGap @karlitschek THX

EE relevant - backport required