I've been reading a lot about how 777 permissions for a directory, where images are uploaded to, is a security risk but I've found no solutions on how to make it secure. If any of you have any related links or can give me some suggestions on how to make my image uploading more secure then please feel free to do so ;) I'd really appreciate it.
P.S. The server is a unix server and I'm using php.