Reviewed:  https://reviews.mahara.org/12237
Committed: 
https://git.mahara.org/mahara/mahara/commit/3d13db8326f6ccc9415b48cc3b2957d027991119
Submitter: Robert Lyon ([email protected])
Branch:    main

commit 3d13db8326f6ccc9415b48cc3b2957d027991119
Author: Doris Tam <[email protected]>
Date:   Tue Nov 9 16:43:48 2021 +1300

Bug 1950242: Add new file endpoint that contains ability to upload a
file to files area

Test locally  with:

curl --location --request POST 'http://mahara/webservice/rest/server.php' \
-F 'externalsource="test source"' \
-F 'userid="0"' \
-F 'username="admin"' \
-F 'foldername="test"' \
-F 'title="test image"' \
-F 'description="test description"' \
-F 'tags[0]="oneeee"' \
-F 'tags[1]="twooo"' \
-F 'wstoken="...your webservice token"' \
-F 'wsfunction="mahara_upload_file"' \
-F 'filetoupload=@"/home/...path to file"'

Change-Id: I5e2d32f0ce27761358f21b31d77a9a4c7918990d

-- 
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:
  New

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