Title: Overwrite documents
Last modified: December 6, 2021

---

# Overwrite documents

 *  Resolved [stlecho](https://wordpress.org/support/users/stlecho/)
 * (@stlecho)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/overwrite-documents/)
 * On my website I’m publishing a menu of meals on a monthly basis. In the page 
   I’m using the pdf-embedder plugin to embed the PDF on the page. As this plugin
   requires the URL of the document, I would like to overwrite the “menu.pdf” each
   month with a new version. By doing this I do not need to change the used URL.
 * When I do this, I get 2 documents: menu.pdf and menu-1.pdf. Is there an easy 
   way to overwrite this document so that I can upload newer versions of menu.pdf
   without having to change the used URL ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foverwrite-documents%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [devowl.io GmbH](https://wordpress.org/support/users/devowl/)
 * (@devowl)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/overwrite-documents/#post-15136912)
 * Hi [@stlecho](https://wordpress.org/support/users/stlecho/),
 * Thank you for your request. Real Cookie Banner does not currently offer a replace
   file function, which is what you would need for your project.
 * However, in this case it is not a good idea either. Depending on the settings
   of your WordPress, your web server and the browser of your visitors, files are
   cached in the visitor’s browser for different lengths of time. This means that
   if awesome-resturant.com/wp-content/uploads/menu.pdf was downloaded once, your
   visitor will not necessarily download the PDF again the next day. Instead, it
   may display a local copy from your visitor’s browser. This means that the old
   menu could still be displayed.
 * Therefore the URL of your menu should change with every new menu.
 * I hope this explanation helps you!
 * Best regards,
 * Jan

Viewing 1 replies (of 1 total)

The topic ‘Overwrite documents’ is closed to new replies.

 * ![](https://ps.w.org/real-media-library-lite/assets/icon-256x256.gif?rev=2293211)
 * [Real Media Library: Media Library Folder & File Manager](https://wordpress.org/plugins/real-media-library-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/real-media-library-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/real-media-library-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/real-media-library-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-media-library-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-media-library-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [devowl.io GmbH](https://wordpress.org/support/users/devowl/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/overwrite-documents/#post-15136912)
 * Status: resolved