Reviewed:  https://reviews.mahara.org/12248
Committed: 
https://git.mahara.org/mahara/mahara/commit/31fd43ff2190a3337b3031407df066f81e5f4dcd
Submitter: Robert Lyon ([email protected])
Branch:    main

commit 31fd43ff2190a3337b3031407df066f81e5f4dcd
Author: Doris Tam <[email protected]>
Date:   Wed Nov 17 17:50:57 2021 +1300

Bug 1950242: Send notificaiton for new file uploads by someone else

Check that the given username/id matches an existing person
Test with username on, and userid off and vice versa

curl --location --request POST 'http://mahara/webservice/rest/server.php' \
-F 'externalsource="unisg.ch"' \
-F 'username="admin"' \
-F 'userid="1"' \
-F 'foldername="certificates"' \
-F 'title="Certificate 101"' \
-F 'description="Certificate for the 101 course, 2021"' \
-F 'tags[0]="tag1"' \
-F 'tags[1]="tag2"' \
-F 'wstoken="...your token"' \
-F 'wsfunction="mahara_upload_file"' \
-F 'filetoupload=@"/home/...path to file"

Change-Id: Iacfb0ba3602eea49e2f4b1e084c39610290fe6e4

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1950242

Title:
  Add new File endpoint that contains ability to upload a file to files
  area

Status in Mahara:
  Fix Committed

Bug description:
  Add new File endpoint that contains ability to upload a file to files
  area for webservices

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1950242/+subscriptions


_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to