cakephp 2.3 how to manage file upload for users and display the files when they are logged in?
问题 so far what I have managed to do is upload the file in app/files directory and download them using the deprecated media views. I am unable to use $file = $this->Attachment->getFile($id); and i want to display the images/files to the user, say like a profile image of the user. How can i get this done without comprising on the security of the user images. I get the error Call to a member function getFile() on a non-object I don't want to use any plugins for the same. Thanks in advance. 回答1: You