Skip to content

Misused header name, 'Content-Type'. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.' #38

Answered by gabrieldwight
kasunf asked this question in Q&A
Discussion options

You must be logged in to vote

On my side, it is working with the MAUI you sent using the file picker API

var customFileType = new FilePickerFileType(
			new Dictionary<DevicePlatform, IEnumerable<string>>
				{
					{ DevicePlatform.iOS, new[] { "" } }, // UTType values
                    { DevicePlatform.Android, new[] { "image/jpeg", "image/png", "application/pdf" } }, // MIME type
                    { DevicePlatform.WinUI, new[] { ".png", ".jpg", ".pdf" } }, // file extension
                    { DevicePlatform.Tizen, new[] { "*/*" } },
					{ DevicePlatform.macOS, new[] { "" } }, // UTType values
                });

		PickOptions options = new()
		{
			PickerTitle = "Please select a media file",
			FileTypes = c…

Replies: 1 comment 20 replies

Comment options

You must be logged in to vote
20 replies
@gabrieldwight
Comment options

@kasunf
Comment options

@gabrieldwight
Comment options

@gabrieldwight
Comment options

Answer selected by kasunf
@kasunf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants