Body: <p>I'm trying to use CiviMail and Mosaico to distribute a .pdf file to our internal distribution list. When I try to include the file as an attachment I get the error message &quot;Attaching files via AJAX requires a recent, valid token&quot;.  The .pdf file is not one that I created, it's an announcement from one or our Board members. What can I do to get CiviMail to accept the .pdf file as an attachment?</p>
  <p>CiviCRM 5.66.0, WordPress Version 6.4.2</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-08T18:23:08.370Z
Comments.Text: I had someone report the same problem.  Did the problem occur again in the future?  My theory is that it has to do with the amount of time between pressing the "Advanced Options" button and selecting the attachment.
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-03-08T15:05:41.537Z
Comments.Text: From an external developer I learned that,
  "another Mosaico developer has this flagged as an issue: https://github.com/veda-consulting-company/uk.co.vedaconsulting.mosaico/issues/598
  
  As per the issue above, the solution is to disable the plugin:Mosaico Tweaks (mosaicotweaks) pending the developer of that extension making it compatible with Mosaico 3.x"
Comments.UserDisplayName: ArloGueswith
Tags: <civimail><mosaico><ajax>
Title: Problem attaching files via AJAX requires a recent, valid token
ThreadText: # Problem attaching files via AJAX requires a recent, valid token
  
  (Asked by: username_0 on 2023-12-12)
  
  I'm trying to use CiviMail and Mosaico to distribute a .pdf file to our internal distribution list. When I try to include the file as an attachment I get the error message "Attaching files via AJAX requires a recent, valid token". The .pdf file is not one that I created, it's an announcement from one or our Board members. What can I do to get CiviMail to accept the .pdf file as an attachment?
  
  CiviCRM 5.66.0, WordPress Version 6.4.2
  
  **Tags:** civimail, mosaico, ajax
  
  > **Comments:**
  > **username_1**: I had someone report the same problem.  Did the problem occur again in the future?  My theory is that it has to do with the amount of time between pressing the "Advanced Options" button and selecting the attachment.  
  > **username_0**: From an external developer I learned that, "another Mosaico developer has this flagged as an issue: https://github.com/veda-consulting-company/uk.co.vedaconsulting.mosaico/issues/598  As per the issue above, the solution is to disable the plugin:Mosaico Tweaks (mosaicotweaks) pending the developer of that extension making it compatible with Mosaico 3.x"  
  
  ---
  
  ## 0 answers
  
  