when I am trying upload images with local selection but it doesn’t work, so Do i need a server with safe mode on or off in order to use this function or upload files?
Safe mode does not help you with that. 97% of all php servers are having their safe mode off because it is what they call a misnomer - an incorrect or unsuitable name. From PHP6 it will be abandoned.
Check your folder permissions, see what group they are assigned to vs what group PHP/Apache is running as.