File upload widget broken when using CDN module, fixed in Drupal 8.1.4: require that version
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2711529. --> Reported by: [yobottehg](https://www.drupal.org/user/3066367) >>> <p>I successfully added Fastly as a CDN for serving static content but theres one problem after enabling the CDN module:</p> <p>File upload is not possible anylonger.</p> <p>The following error occurs on file upload:<br> InvalidArgumentException: The URI '//example.com/sites/default/files/2016-04/Scan.jpeg' is invalid. You must use a valid URI scheme. in Drupal\Core\Url::fromUri() (line 306 of /home/r0ea6/www/core/lib/Drupal/Core/Url.php).</p> <p><strong>Steps to reproduce :</strong></p> <ul> <li>enable cdn, active it and set up any domain for testing, in this case (example.com) no js / css will be loaded but thats okay</li> <li>create an article and upload a file, on upload click the upper error is shown.</li> </ul> <p><strong>Proposed resolution:</strong><br> Only alter the file base path on view not on upload.</p> > Related issue: [Issue #1783278](https://www.drupal.org/node/1783278) > Related issue: [Issue #2573635](https://www.drupal.org/node/2573635) > Related issue: [Issue #2734859](https://www.drupal.org/node/2734859)
issue