Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem/Bug]: File uploading doesn't work correctly #4994

Open
DmitryBorodiy opened this issue Dec 15, 2024 · 4 comments
Open

[Problem/Bug]: File uploading doesn't work correctly #4994

DmitryBorodiy opened this issue Dec 15, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@DmitryBorodiy
Copy link

What happened?

When I upload a file to input it says that the file weighs 0 bytes.

Screen.Recording.2024-12-15.023414.mp4

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

latest

SDK Version

latest

Framework

WinUI2/UWP

Operating System

Windows 11

OS Version

No response

Repro steps

Try create html input and upload any file or open MDN sample to try

https://developer.mozilla.org/en-US/docs/Web/API/File_API/Using_files_from_web_applications

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

@DmitryBorodiy DmitryBorodiy added the bug Something isn't working label Dec 15, 2024
@sivMSFT
Copy link

sivMSFT commented Dec 16, 2024

Hi @DmitryBorodiy,

Could you please provide more details about the specific issue you are encountering with WebView2?

We attempted to reproduce the problem on our end but were unable to replicate it. Any additional information you can provide will help us investigate further.

@DmitryBorodiy
Copy link
Author

Hi @DmitryBorodiy,

Could you please provide more details about the specific issue you are encountering with WebView2?

We attempted to reproduce the problem on our end but were unable to replicate it. Any additional information you can provide will help us investigate further.

Maybe this is a uwp issue. But some folders don't upload files to sites, even from a photo or document library. When I select a file from the video folder, for example, everything works. Can you tell me what can cause this problem?

@DmitryBorodiy
Copy link
Author

Hi @DmitryBorodiy,

Could you please provide more details about the specific issue you are encountering with WebView2?

We attempted to reproduce the problem on our end but were unable to replicate it. Any additional information you can provide will help us investigate further.

More precisely, files are selected from all folders, but their size is sometimes not correctly transferred to the site.

@DmitryBorodiy
Copy link
Author

Hi @DmitryBorodiy,

Could you please provide more details about the specific issue you are encountering with WebView2?

We attempted to reproduce the problem on our end but were unable to replicate it. Any additional information you can provide will help us investigate further.

Maybe to access for all folders I need to provide broadFileSystemAccess capability for UWP app? I have a feeling that WebView2 only accesses certain folders, not all of them. Therefore, when I select a file from the video folder, everything works, when from documents, the file is selected, but its content is passed empty, and its size is always 0 bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants