http.get(options).on('response', function (response) { var body ... ... <看更多>
Search
Search
http.get(options).on('response', function (response) { var body ... ... <看更多>
instead i need to read the file directly from url (https). can someone tel me how to read the content from external url? fs.readFile('./public/ ... ... <看更多>
First you need to load it with the fid : $file = \Drupal\file\Entity\File::load($fid);. And after : $imageSRC = file_create_url($file->getFileUri());. ... <看更多>
In web browsers absolute URLs work only if the server implements CORS. ... request .get('/big-file?network=slow') .timeout({ response: 5000, ... ... <看更多>