Safe and functional of upload class with PHP.