.. include:: /shortcuts.rstext .. index:: single: Content; Files single: Parent folder icon .. _files_area: Files ------ *Main menu → Create → Files* The *Files* area is a repository, i.e. a document storage for folders and files, that you can use within your portfolio. Both folders and files are considered artefacts and as such can be added to a page. You may create any number of folders or sub folders. To view which subfolders and files sit within a folder, click on the folder name. Use the *Home* link to return to the top level folder directory. You can arrange files and folders by dragging and dropping **the icon in front of the file / folder name** onto another folder icon. A suitably named and organised filing structure will help you with the long-term organisation and retrieval of your artefacts. If you want to move a file or folder out of a subfolder, move it onto the *parent folder* icon |parentfolder|. You will find that some folders are automatically created by the system such as *viewfiles* or *images*. The *viewfiles* folder includes files from imported pages whereas the *images* folder includes :ref:`your uploaded profile pictures `. As with any other file, you can move them out of this folder and store them in a different folder. .. note:: You can move files and folders to your heart's content without having to re-link them in the pages where you use them. Also renaming them will not have a negative impact on links. .. index:: single: File; File area; File browser .. _download_files: File browser ~~~~~~~~~~~~~~~~~~~~~ In the *Files* area you have a file browser in which you can organise your files so you can find them more easily. You can sort your files into folders and also create subfolders. .. figure:: /images/file_browser.* :alt: Your file browser Your file browser #. Click a file or folder icon and drag and drop it onto a folder to move the file or folder within that folder. #. **Name**: You see all your folders and files that are not in folders listed to access them easily. .. note:: When you click on the name of an image, you see a preview of it. You are presented with a download option when you click on another file. #. **Description / Tags**: View the description and :index:`tags ` of your folders or files to know quickly what the content of them is. .. note:: If you do not give an image a description, the file name is used as ``alt tag`` to identify the image when you place it into an image block or display it embedded in text. #. **Size**: The size of your files and folders is displayed. #. **Date**: The date you created a folder or uploaded a file is shown. #. Click the *Edit* button |edit| to edit folder or file properties. Continue with :ref:`editing a file `. #. Click the *Delete* button |delete| to delete a file or folder. .. warning:: A pop-up window requires you to confirm the deletion because you will not be able to recover the file once it is deleted. If you use a file in a journal entry and / or on a page, the warning message tells you that this file is in use elsewhere so that you don’t delete it by accident. #. If a folder or file is used in a portfolio that has been :ref:`submitted `, you are not able to edit or delete it. #. :index:`Click the ` **Download folder content as a zip file** link in order to get a zip file which contains all files and folders of the current folder. .. seealso:: Site administrators decide in the :ref:`Artefact type: File settings ` for how long the zip file is kept on the server. .. index:: single: File; Upload a file single: Resize images on upload - per file upload single: License metadata: Add license information to files .. _upload_file: Upload a file ~~~~~~~~~~~~~~ Before you upload a file, make sure that you are allowed to do so. For any artefacts that you publish in your portfolio, you must have the sufficient rights. That means: * the artefact is your own **or** * you are allowed to reproduce and distribute it, i.e. it does not violate any copyright legislation **and** * the artefact also adheres to the Terms and Conditions of the Mahara site you are using .. note:: It can be that you have to agree to an upload agreement before you can upload any files to your *Files area*. The site administrator decides about that in *Administration menu → Extensions → Plugin administration* → :ref:`Plugin type: artefact: file `. .. figure:: /images/upload_file.* :alt: Upload a file Upload a file #. **License**: You see this field if the site administrator turned on :ref:`license metadata `. Choose the license for the artefact that you are about to upload. You can set your default license in your :ref:`account settings `. #. **Licensor**: You see this field if the site administrator turned on :ref:`license metadata `. If you are uploading a file that somebody else created, you can attribute the work to them here and provide their name for example. #. **Original URL**: You see this field if the site administrator turned on :ref:`license metadata `. If you are uploading somebody else's file, provide a link to the original Internet address so that others can go there and view the original file. #. If the site administrator turned on the :ref:`image resizing option `, you can decide whether you want to have your images resized if they are larger than the specified dimensions. This option is recommended to save space in your portfolio. #. **Upload file**: Upload a file by clicking on the *Browse* button to search for the file on your computer. Make sure that it is not larger than the maximum upload size that is shown in the parentheses. #. :index:`Instead of clicking ` the *Browse* button to upload files, you can drag and drop files from your computer directly onto the "drop zone". You must still observe the maximum file size upload for each file and the maximum total file size cannot be exceeded either. .. note:: This functionality is not available in all browsers. Generally, users of Chrome 7+, Firefox 4+, Internet Explorer 10+, Opera 12+ (Windows only) and Safari 6+ can use drag and drop. You can drag and drop an entire folder without zipping it into the *Files* area using Chrome. The files are uploaded, but not the folder itself. So if all files should be in a separate folder, create a folder in Mahara first. This feature does not exist in Firefox and Safari. #. Type the folder name and click the *Create folder* button if you want to create a folder before uploading files. Click the folder to upload files directly into it. .. index:: single: File; Upload multiple files single: Upload multiple files Upload multiple files ~~~~~~~~~~~~~~~~~~~~~~ You can upload multiple files at once in three different ways: * You can upload multiple files when you are browsing for them after having clicked the *Browse* button. Hold down the `Ctrl` key (or `Command` key on a Mac) and click on all the files that you wish to upload at once. * You can drag and drop multiple files into the *drop zone*. * You can also place all files into a compressed file, a *.zip file*, and upload that to Mahara. This method allows you to upload multiple files from different folders on your computer at once. You can create a zip file from any number of files that you have selected in your document management program by making a right mouse click and selecting *Compress...* (or something similar). .. figure:: /images/compress_finder.* :alt: Zip files in MacOSX Zip files in the Finder under MacOSX .. figure:: /images/compress_nautilus.* :alt: Zip files in Ubuntu Zip files in Ubuntu's Nautilus .. figure:: /images/compress_explorer.* :alt: Zip files in Windows Zip files in Windows Explorer Once you have uploaded your zip file to Mahara, you can unzip it there. Click on the *Unzip* button |unzip| next to the *Edit* button |edit|. Please follow the on-screen instructions. .. index:: single: File; Edit file .. _edit_file: Edit a file or folder ~~~~~~~~~~~~~~~~~~~~~~~ You can edit the properties of a file or folder at any time. The file does not have to be re-linked in portfolio pages, but the properties you changed will be updated automatically. .. figure:: /images/edit_file.* :alt: Edit a file Edit a file #. Click the *Edit* button |edit| to edit folder or file properties. #. **Name**: Change the name of the file (or folder). It is not necessary to keep the file extension as Mahara stores it internally. However, it can be good to leave it in case somebody has problems opening the file if no default programme is associated with the file after downloading it. This field is mandatory and each file (or folder) must have a name. #. **Description**: Give the file (or folder) a description to find it again more easily. .. note:: If you do not give an image a description, the file name is used as ``alt tag`` to identify the image when you place it into an image block or display it in text. #. **Tags**: Give the file (or folder) one or more tags. You can choose from your existing tags by starting to type a letter and then selecting the tag you want to use. You can also type a new tag, and it is added to your list of tags. .. seealso:: You can find more information on how to use the tag selector in the :ref:`"Tags" section `. #. **License**: You see this field if the site administrator turned on :ref:`license metadata `. Choose the license for the artefact that you are editing. #. **Licensor**: You see this field if the site administrator turned on :ref:`license metadata `. If you are editing a file that somebody else created, you can attribut the work to them here and provide their name for example. #. **Original URL**: You see this field if the site administrator turned on :ref:`license metadata `. If you are editing somebody else's file, provide a link to the original Internet address so that others can go there and view the original file. #. **Allow comments**: Decide if users should be allowed to comment directly on the file artefact page when they view it. #. Click the *Save changes* button to keep your changes or click *Cancel* to abort the action. .. index:: single: File; Rotate an image single: Image; Rotate an image .. _rotate_image: Rotate an image ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When you upload images directly from a mobile device, the orientation may not be correct, and a landscape image might be displayed in portrait mode. By rotating the image in Mahara on the fly, you can correct its orientation. .. figure:: /images/file_rotate.* :alt: Rotate an image Rotate an image #. Click the *Edit* button |edit| next to the image that you want to rotate. #. **Orientation**: Click the *Rotate* button |rotate image| until you reach the desired orientation. The new orientation is applied wherever that image is used in blocks on a page. #. Click the *Save changes* button to keep your changes or click *Cancel* to abort the action. .. index:: single: File; File quota File quota ~~~~~~~~~~~ The site administrator of your Mahara site decides how much space you can have to store files. This can vary across institutions. You can check your file quota in the sidebar in your *Files* area. .. figure:: /images/file_quota.* :alt: file quota File quota