70-489 · Question #44
You need to ensure that users can upload pictures. Which code segment should you insert at line MP57?
The correct answer is B. Option B. This question tests knowledge of the correct code configuration required to enable picture or file uploads, likely in a SharePoint, ASP.NET, or web forms context. The specific option content was not provided (code images are missing).
Question
You need to ensure that users can upload pictures. Which code segment should you insert at line MP57?
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
How the community answered
(36 responses)- A3% (1)
- B75% (27)
- C14% (5)
- D8% (3)
Why each option
This question tests knowledge of the correct code configuration required to enable picture or file uploads, likely in a SharePoint, ASP.NET, or web forms context. The specific option content was not provided (code images are missing).
Without the specific code content available, a precise reason cannot be stated - this option likely uses an incorrect control type, missing attribute, or wrong content type configuration that would prevent picture uploads from functioning.
Without the actual code content of Option B available, a precise technical explanation cannot be given. Generally, enabling picture uploads in a web or SharePoint context requires configuring the file input control with the correct MIME type filter, setting the AllowMultiple or accept attributes appropriately, and ensuring the server-side handler processes binary stream data correctly.
Without the specific code content available, a precise reason cannot be stated - this option likely omits a required property or uses an incompatible approach for handling binary file data.
Without the specific code content available, a precise reason cannot be stated - this option likely introduces a configuration that is either unsupported or conflicts with the upload requirement.
Concept tested: File upload control configuration for image uploads
Source: https://learn.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads
Topics
Community Discussion
No community discussion yet for this question.
