I set up sending an attachment in my email using an amp script.

```lang-ampscript
%%[

var @customerKey, @fileAlias
set @fileName = "https://drive.google.com/file/d/1234567890/view?usp=sharing"
set @fileAlias = "Test_Attachments.pdf"

AttachFile("HTTP", @fileName, @fileAlias,4,5,6,7,true)

]%%
```

As a link from where the file should be taken, I indicated a link to google drive (having previously opened access to the file). Link above like example

But I'm facing a problem when an email arrives, the attachment won't open and the error "You may be offline or with limited connectivity. Try downloading instead" is thrown, while downloading the following error "Failed to load PDF document.".

What could be the problem? I did not find adequate examples of use.