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

    • 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, MOODLE_37_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:
                44 Vote for this issue
                Watchers:
                27 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 minutes
                  2m