# Intermittent upload Issues

**URL:** <https://community.transloadit.com/t/intermittent-upload-issues/18267>\
**Category:** Transloadit\
**Tags:** tender-archive\
**Created:** [February 26, 2014, 10:45pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267 "2014-02-26T22:45:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aleksandra\_Czajka](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/aleksandra_czajka/32/1651_2.png) [@Aleksandra\_Czajka](https://community.transloadit.com/u/Aleksandra_Czajka)\
**Post date:** [February 26, 2014, 10:45pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/1 "2014-02-26T22:45:00Z")

</div>

> Archived from the Transloadit support forum. Originally posted on February 26, 2014; details may be outdated, see [our docs](https://transloadit.com/docs/) for current behavior. [Original thread](https://web.archive.org/web/20140504204140/http://support.transloadit.com/discussions/problems/13477-intermittent-upload-issues)

I keep having intermittent upload issues with video.  
What happens intermittently is 1. slow upload time, most of the time ending in no upload at all after 20 mins  
2. after something finally uploads, the actual video when replayed cuts off way before the finish time. That is, it shows the full length of the video on the timeline on the bottom of the video, but, the video cuts off way before it reaches the end of the timeline.

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [February 26, 2014, 11:21pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/2 "2014-02-26T23:21:00Z")

</div>

Can you please attach some assembly ids where this happened?

Kind regards,

Tim Koschuetzki  
Co-Founder Transloadit  
@tim\_kos

---

<div class="post-metadata">

**Author:** ![Aleksandra\_Czajka](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/aleksandra_czajka/32/1651_2.png) [@Aleksandra\_Czajka](https://community.transloadit.com/u/Aleksandra_Czajka)\
**Post date:** [February 26, 2014, 11:29pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/3 "2014-02-26T23:29:00Z")

</div>

so, what actually happens for every video is that, after it renders, only some of it can play. my client is getting confusing because she says the video cannot play after a while, but, what in fact happens is that the full video has not rendered yet. we still need to wait a bit in order for it to play whole, but, there is no notification to the user explaining that they have to wait. i’ll see if my client is fine with this. i think it would be better to show the grainy image on the video tag until the full video has rendered and is ready to play. can you guys detect that?

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [February 27, 2014, 6:55am UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/4 "2014-02-27T06:55:00Z")

</div>

Hey Aleksandra,

can you please post your integration code, for example using the jQuery plugin? I think there is something very wrong there. Once we are finished encoding a video it will be able to play fine.

Also please read up on assembly notifications here [https://transloadit.com/docs#notifications](https://transloadit.com/docs#notifications) in order to be notified when we have finished processing your files.

Kind regards,  
Tim

Co-Founder Transloadit  
@tim\_kos

---

<div class="post-metadata">

**Author:** ![Aleksandra\_Czajka](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/aleksandra_czajka/32/1651_2.png) [@Aleksandra\_Czajka](https://community.transloadit.com/u/Aleksandra_Czajka)\
**Post date:** [February 27, 2014, 3:37pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/5 "2014-02-27T15:37:00Z")

</div>

Here’s the code

\<form id=“upload-form” action=“” enctype=“multipart/form-data”  
method=“POST”\>

```auto
<input type="file" name="my_file" multiple="multiple" />
</form>
<div>[Maximum video length is 90 seconds!]</div>
<script type="text/javascript">
$(function() {
$('#upload-form').transloadit({
wait: true,
triggerUploadOnFileSelection: true,
autoSubmit: false,
params: {
auth: {key: "REDACTED"},
template_id: "REDACTED"
},
onSuccess: function(assembly)
{
if(assembly.uploads[0].meta.duration > 90)
alert('WARNING! Your video cannot be over 90 seconds.');
else
{
Salon_SaveVideo(assembly.results["encode_video"][0]["ssl_url"], <?php
if(isset($_SESSION["Salon"]["VideoSource"]))echo
'"'.$_SESSION["Salon"]["VideoSource"].'"'; else echo "null"; ?>);
}
}
});
});
</script>

```

---

<div class="post-metadata">

**Author:** ![Aleksandra\_Czajka](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/aleksandra_czajka/32/1651_2.png) [@Aleksandra\_Czajka](https://community.transloadit.com/u/Aleksandra_Czajka)\
**Post date:** [February 27, 2014, 9:33pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/6 "2014-02-27T21:33:00Z")

</div>

Tim,

Any progress on this? We cannot launch our application because of this.

Thanks for all your help.

Best,

---

<div class="post-metadata">

**Author:** ![Aleksandra\_Czajka](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/aleksandra_czajka/32/1651_2.png) [@Aleksandra\_Czajka](https://community.transloadit.com/u/Aleksandra_Czajka)\
**Post date:** [February 27, 2014, 10:33pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/7 "2014-02-27T22:33:00Z")

</div>

By the way, when I set wait to ‘false’ nothing different happens. it’s still waits for a while at ‘100%’

---

<div class="post-metadata">

**Author:** ![Aleksandra\_Czajka](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/aleksandra_czajka/32/1651_2.png) [@Aleksandra\_Czajka](https://community.transloadit.com/u/Aleksandra_Czajka)\
**Post date:** [February 28, 2014, 3:27am UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/8 "2014-02-28T03:27:00Z")

</div>

i’ve switched the code to using notifications, etc. i do need to clear my session after the upload, so, i still have to have an onUpload function. this is what i changed it to be and it’s uploading way faster. Thanks for your help!

```auto
 <script type="text/javascript">
$(function() {
$('#upload-form').transloadit({
wait: false,
triggerUploadOnFileSelection: true,
autoSubmit: false,
params: {
auth: {key: "REDACTED"},
template_id: "REDACTED",
notify_url: "[http://salonmatchmakers.com/transloadit_notifications.php?id=&lt;?php](http://salonmatchmakers.com/transloadit%5Fnotifications.php?id=<?php)
echo $_SESSION["Salon"]["ID"]; ?>&file=<?php echo
urlencode($_SESSION["Salon"]["VideoSource"]); ?>"
},
onUpload: function(assembly)
{
clearVideo();
}
});
});
</script>

```

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [February 28, 2014, 6:51am UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/9 "2014-02-28T06:51:00Z")

</div>

Yep that’s exactly what I meant. Glad you figured it out!

What does clearVideo() do? Can you post that function please?

Also, do you need more help here?

Kind regards,  
Tim

Co-Founder Transloadit  
@tim\_kos

---

<div class="post-metadata">

**Author:** ![Aleksandra\_Czajka](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/aleksandra_czajka/32/1651_2.png) [@Aleksandra\_Czajka](https://community.transloadit.com/u/Aleksandra_Czajka)\
**Post date:** [February 28, 2014, 3:52pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/10 "2014-02-28T15:52:00Z")

</div>

Tim,

clearVideo() is just specific to what I’m doing. I just need to clear the session to say that the new video has been submitted for review.  
No more help needed. Thank you for everything.

Have a great weekend!

---

<div class="post-metadata">

**Author:** ![Aleksandra\_Czajka](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/aleksandra_czajka/32/1651_2.png) [@Aleksandra\_Czajka](https://community.transloadit.com/u/Aleksandra_Czajka)\
**Post date:** [February 28, 2014, 6:05pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/11 "2014-02-28T18:05:00Z")

</div>

Tim,

last question, does the notify\_url only get called once? or does it keep getting called multiple times for some reason. my notify\_url sends out one email when the transformation happens, but, I’ve seen multiple emails come out.

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [March 1, 2014, 1:20pm UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/12 "2014-03-01T13:20:00Z")

</div>

Hey Aleksandra,

the notify mechanism is considered faulty if you do not reply with a 200 (success) header and it will then be retried. Please make sure the POST request receives that header, then the notification will only be sent once.

I’ll update the docs to make this more clear!

Kind regards,  
Tim

Co-Founder Transloadit  
@tim\_kos

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/04ee57da0cb7ac8728a9ac5965c288164f4ce280.svg) [@system](https://community.transloadit.com/u/system)\
**Post date:** [October 7, 2026, 10:47am UTC](https://community.transloadit.com/t/intermittent-upload-issues/18267/13 "2026-10-07T10:47:05Z")

</div>


