Skip to content

Commit f7b8f03

Browse files
authored
allow to upload xlsx
1 parent 37a1173 commit f7b8f03

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

appveyor.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ test_script:
8686
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
8787
# Fail if thre are issues
8888
if($results.Count -gt 0){throw "ScriptAnalyzer found $($results.Count) issues"}
89-
89+
90+
# Enable additional file formats
91+
$newSettings = New-Object PSCustomObject -Property @{"PropertyValues" = @( @{"@odata.type"="#Model.Property"; "Name" = "AllowedResourceExtensionsForUpload"; "Value" = "*,*.xml,*.xsd,*.xsl,*.png,*.gif,*.jpg,*.tif,*.jpeg,*.tiff,*.bmp,*.pdf,*.svg,*.rtf,*.txt,*.doc,*.docx,*.pps,*.ppt,*.pptx,*.xlsx"})}
92+
$stringNewRequest = $newSettings | ConvertTo-JSON -Depth 5
93+
Invoke-RestMethod -Uri "http://localhost/reports/api/v1.0/ReportServerInfo/Model.UpdateSettings" -Method POST -UseDefaultCredentials -ContentType 'application/json' -Body $stringNewRequest
94+
9095
# Integration test section
9196
# Activate verbose on Powershell
9297
$VerbosePreference = "continue"

0 commit comments

Comments
 (0)