Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28501

Allow to open files in mod_folder without downloading (this can not be allowed for files uploaded by students with managefiles capability for security reasons)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.3, 2.4.5, 3.1.2, 3.6
    • Fix Version/s: STABLE backlog
    • Component/s: Resource
    • Labels:
    • Database:
      Any
    • Testing Instructions:
      Hide
      1. Create a folder resource
      2. Ensure "Force download" is checked by default
      3. Upload an html file and save
      4. Try viewing the html file and ensure that it is downloaded to your local system
      5. Edit the folder resource and uncheck "Force download"
      6. Try viewing the html file again; it should be shown on screen
      Show
      Create a folder resource Ensure "Force download" is checked by default Upload an html file and save Try viewing the html file and ensure that it is downloaded to your local system Edit the folder resource and uncheck "Force download" Try viewing the html file again; it should be shown on screen
    • Difficulty:
      Difficult
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_24_STABLE, MOODLE_31_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-28501-master

      Description

      When creating a folder resource and uploading html-files in it (htm or html). When viewing the url shows a forcedownload=1 and the browser downloads the html-file in stead of showing it.
      Removing the forcedownload from the url doesn't seem to help.

      Replication instructions:
      1. Create a folder resource
      2. Upload an html file and save
      3. Try viewing the html file
      The browser downloads the file (Chrome) or suggests to save (Firefox)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                40 Vote for this issue
                Watchers:
                21 Start watching this issue

                Dates

                • Created:
                  Updated: