Skip to content

Commit f2d100c

Browse files
authored
fix: compute payload mime type on server (microsoft#721)
1 parent 1dc7433 commit f2d100c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

playwright/_impl/_file_chooser.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
import base64
16-
import mimetypes
1716
import os
1817
from pathlib import Path
1918
from typing import TYPE_CHECKING, List, Union
@@ -69,8 +68,6 @@ def normalize_file_payloads(
6968
file_payloads.append(
7069
{
7170
"name": os.path.basename(item),
72-
"mimeType": mimetypes.guess_type(str(Path(item)))[0]
73-
or "application/octet-stream",
7471
"buffer": base64.b64encode(fd.read()).decode(),
7572
}
7673
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy