Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Filepicker
    • Labels:
      None
    • Environment:
      Win 7
    • Testing Instructions:
      Hide

      1. Log in as teacher/admin
      2. Create a page resource
      3. In the editor, click on the "Insert/edit image" icon
      4. Click "Find or upload an image..."
      5. Use the filepicker to upload an image
      6. Make sure the file is inserted only if it has proper extension (jpg, gif, png)
      7. Try to rename non-image file in your OS and add image extension (i.e. rename file.zip -> file.jpg), upload it using filepicker
      8. Make sure it is accepted (although not displayed)
      9. Try to rename image file into something different in your OS (i.e. rename file.jpg -> file.zip), upload it using filepicker
      10. Make sure it is not accepted

      11. Add a file into filemanager
      12. Rename it changing the extension and make sure that icon and file type (in table view mode) reflects the extension

      Show
      1. Log in as teacher/admin 2. Create a page resource 3. In the editor, click on the "Insert/edit image" icon 4. Click "Find or upload an image..." 5. Use the filepicker to upload an image 6. Make sure the file is inserted only if it has proper extension (jpg, gif, png) 7. Try to rename non-image file in your OS and add image extension (i.e. rename file.zip -> file.jpg), upload it using filepicker 8. Make sure it is accepted (although not displayed) 9. Try to rename image file into something different in your OS (i.e. rename file.jpg -> file.zip), upload it using filepicker 10. Make sure it is not accepted 11. Add a file into filemanager 12. Rename it changing the extension and make sure that icon and file type (in table view mode) reflects the extension
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
      wip-MDL-33391-master

      Description

      local test site: Moodle 2.3dev (Build: 20120525) - Windows 7 64bits

      When I use the filepicker to upload an image or media file from my computer, in the filepicker window I keep getting the error message

      Image (JPEG) filetype cannot be accepted or Audio file (MP3) filetype cannot be accepted etc.

      Same error message is displayed in Chrome 19.0.1084.52 m; MSIE 9 and Firefox 12.0.

      See also http://moodle.org/mod/forum/discuss.php?d=203528

      Replication steps:

      1. Log in as teacher/admin
      2. Create a page resource
      3. In the editor, click on the "Insert/edit image" icon
      4. Click "Find or upload an image..."
      5. Use the filepicker to upload a media file (MP3, JPG, GIF, PNG)

      The filepicker does not accept the file under Windows 7 under various browsers. It appears to work on Linux.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12