In this section we will create a new document management interface. The document management interface will allow users to upload documents, manage uploads, and share uploaded documents with other users. The user interface will also allow users to manage sharing, and add/remove shares.
In this section, we will focus on providing users with options to create file uploads and manage those uploads. We will be using the filesystem to store the uploaded file and the relative path of the uploaded file will be stored in the database mapped to the user who uploaded the file.
Some of the important Zend Framework components used in file uploads are:
File upload form element (
Zend\Form\Element\File
): TheFile
upload element is used in the upload form to display a file input box. This element is an equivalent of the<input type='file'../>
style element in HTML used for allowing users to upload files. The file input element can be rendered by setting'type' => 'file'
in the form...