-
Notifications
You must be signed in to change notification settings - Fork 85
Conversation
This pull request has been mentioned on PowerShell Universal Dashboard Forums. There might be relevant details there: https://forums.universaldashboard.io/t/upload-files-via-rest-api-748/1426/2 |
Party time! Looks good to me. I'll wait for the build to run and get this merged in. Love it! |
Phew! |
@BoSen29 Can you run the API tests on your box? D:\a\1\s\src\UniversalDashboard.UITest\Integration\Api.Tests.ps1 It looks like it's throwing a 500 on 3 of the tests which indicate an unhandled exception is being thrown. |
@adamdriscoll the tests fail, however when i try to replicate the tests it works great. |
@adamdriscoll |
I can pull down this branch and give er a shot too to see if I have any ideas. |
@adamdriscoll found the issue, the check for contenttype failed if the request was done in a "delete" manner. |
Added an enhancement request for future improvements. |
Awesome! Yeah that looks good! |
Allows for file upload via REST -api.
Note: the original file name is not included in the request.
However, added support for "wildcard" contenttype: ie: file/* and image/* in order to reconstruct.
Readable from the HTTP Request in Endpoint.
See
https://hastebin.com/tediyiqahi.bash
for Powershell Example.
For uploading files -contenttype must be specified according to pattern.