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

Name of file undefined after selecting a file from my private files and clsoing file picker

XMLWordPrintable

    • MOODLE_21_STABLE
    • MOODLE_21_STABLE
    • Hide

      I have now tested the use of the file picker in the file manager, the html editor and the filepicker form component and they all work.
      In each component I tested :

      • uploading a file that did not previously exist
      • and uploaded files with the same name as an existing file
      • and tested choices "Overwrite" existing file and "Rename file" choices all worked

      After the fix the filename and url in the element (filepicker form element, html editor and filemanager form component) using the file picker worked appeared properly.

      Show
      I have now tested the use of the file picker in the file manager, the html editor and the filepicker form component and they all work. In each component I tested : uploading a file that did not previously exist and uploaded files with the same name as an existing file and tested choices "Overwrite" existing file and "Rename file" choices all worked After the fix the filename and url in the element (filepicker form element, html editor and filemanager form component) using the file picker worked appeared properly.

      The name of file shows as undefined after selecting a file from "my private files" and closing the file picker. The file ends up working correctly, the name is incorrect. I have tried this in restoring course backups. Adding an item in the Image Gallery type database activity and others. I have included a screen shot when add an image to the Image Gallery type database activity.

      Replication instructions:

      1. Log in to http://qa.moodle.net/ as a teacher or a student.
      2. Go to your My Private files and upload an image and same changes.
      3. Go to the Moodle features demo (http://qa.moodle.net/course/view.php?id=2)
      4. And then the image gallery database activity(http://qa.moodle.net/mod/data/view.php?id=17)
      5. Add entry
      6. When choosing an image to attach, add the image from your my private files area
      7. Close file picker

      file name is undefined instead of actual file name
      This is before saving the entry

            jamiesensei Jamie Pratt (Inactive)
            mspall Michael Spall
            Dongsheng Cai Dongsheng Cai
            Sam Hemelryk Sam Hemelryk
            Ankit Agarwal Ankit Agarwal
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.