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

$stored_file->add_to_curl_request() should add the original file name to the curl data

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Run the unit tests: vendor/bin/phpunit core_files_file_system_testcase lib/filestorage/tests/file_system_test.php

      Expected result:

      1. The unit tests will pass with zero failures indicating that the external test script, test_file_name.php, responded with 'OK' as the filename 'test.txt' was part of the POST request.

       

      Show
      Run the unit tests: vendor/bin/phpunit core_files_file_system_testcase lib/filestorage/tests/file_system_test.php Expected result: The unit tests will pass with zero failures indicating that the external test script, test_file_name.php, responded with 'OK' as the filename 'test.txt' was part of the POST request.  
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-33174-master

      Description

      Currently $stored_file->add_to_curl_request() results in a file being POSTed with a filename consisting of a sha1 not the original name of the file.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17