<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>175533</bug_id>
          
          <creation_ts>2017-08-14 06:19:58 -0700</creation_ts>
          <short_desc>Upload of large files (~100 MB) fails on Safari with Fetch/XHR</short_desc>
          <delta_ts>2021-01-14 11:09:57 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>Safari 10</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ebrahim Byagowi">ebrahim</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>darin</cc>
    
    <cc>dbates</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1338329</commentid>
    <comment_count>0</comment_count>
    <who name="Ebrahim Byagowi">ebrahim</who>
    <bug_when>2017-08-14 06:19:58 -0700</bug_when>
    <thetext>Safari 10.1.2

Steps to repro:
0. Install a recent version of node.js, perhaps from brew by `brew install nodejs` (needed for the simple server setup)
1. Save content of below script to server.js:

&quot;&quot;&quot;
require(&apos;http&apos;).createServer((req, res) =&gt; {
  if (req.method === &apos;POST&apos;)  
    return req
      .on(&apos;data&apos;, () =&gt; undefined)
      .on(&apos;end&apos;, () =&gt; { res.end(req.url + &apos; uploaded!&apos;); console.log(req.url + &apos; uploaded!&apos;); })
      .on(&apos;close&apos;, () =&gt; console.log(req.url + &apos; connection has closed.&apos;));

  res.writeHead(200, { &apos;Content-Type&apos;: &apos;text/html&apos; });
  res.end(`&lt;input type=&quot;file&quot; onchange=&quot;
var formData = new FormData();
formData.append(&apos;blob&apos;, this.files[0], &apos;file&apos;);
fetch(this.files[0].name, { method: &apos;POST&apos;, body: formData }).then(x =&gt; x.text()).then(alert, alert);
&quot;&gt;`);
}).listen(4040, &apos;127.0.0.1&apos;, () =&gt; console.log(&apos;Listening on http://127.0.0.1:4040/&apos;));
&quot;&quot;&quot;

2. Open http://127.0.0.1:4040/ and upload some small files first, then try to do the same with bigger files like 100mb or more, multiple times.


Expected:
Getting &quot;uploaded&quot; alert very consistently each time, like Chrome and Firefox.

Actual:
It works very inconsistently on Safari and gets timeout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1338409</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-08-14 10:58:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/33878674&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1341736</commentid>
    <comment_count>2</comment_count>
    <who name="Ebrahim Byagowi">ebrahim</who>
    <bug_when>2017-08-23 13:04:04 -0700</bug_when>
    <thetext>Can you reproduce this issue there? Despite using an official build seemingly (Version 10.1.2 (12603.3.8)), it seems my Safari suffers from lots of thing as my console.log(&apos;text&apos;) also doesn&apos;t put anything on the console!!1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1341746</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2017-08-23 13:17:23 -0700</bug_when>
    <thetext>I tried with Safari 11 and STP and was able to upload files from 50MB to 8Go.

Can you try with Safari Tech Preview?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1342125</commentid>
    <comment_count>4</comment_count>
    <who name="Ebrahim Byagowi">ebrahim</who>
    <bug_when>2017-08-24 12:26:28 -0700</bug_when>
    <thetext>I can not check it with Safari TP as just its recent version stoped to work here, I guess that has something to do with the oldness of my MacBook Air.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719541</commentid>
    <comment_count>5</comment_count>
    <who name="Ebrahim Byagowi">ebrahim</who>
    <bug_when>2021-01-13 23:43:23 -0800</bug_when>
    <thetext>I don&apos;t see the issue any longer. Perhaps is fixed somewhere else. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719644</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-01-14 11:09:57 -0800</bug_when>
    <thetext>Thank you for the follow-up!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>