# Veel verzoeken verzenden voor video/audio-upload tijdens het bewerken van een bericht

**URL:** <https://meta.discourse.org/t/sending-many-requests-for-video-audio-upload-while-editing-post/161487>\
**Category:** Bug\
**Created:** [20 augustus 2020 om 08:48 UTC](https://meta.discourse.org/t/sending-many-requests-for-video-audio-upload-while-editing-post/161487 "2020-08-20T08:48:22Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [24 augustus 2020 om 02:07 UTC](https://meta.discourse.org/t/sending-many-requests-for-video-audio-upload-while-editing-post/161487/8 "2020-08-24T02:07:10Z")

</div>

I took a look at this and I can somewhat reproduce it with secure and non-secure video uploads. At a certain point it seems to cache and stop spamming these requests but it is still a problem. The line you pointed out:

> <https://github.com/discourse/discourse/blob/0967ce478d85ad5053522944b36ed9212f867457/app/assets/javascripts/pretty-text/addon/upload-short-url.js#L152>

Was added by me, but it doesn’t actually seem to affect anything now. If I remove it the video previews still work fine. I know we have done other work with video thumbnails etc. which have probably fixed whatever issue I put this line here for. So I think I will just remove this which resolves the multiple request issue.

---

_[View the full topic](https://meta.discourse.org/t/sending-many-requests-for-video-audio-upload-while-editing-post/161487)._
