Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vincent Ritter 4 posts 35 karma points
    Oct 04, 2013 @ 14:06
    Vincent Ritter
    0

    Cannot close stream until all bytes are written

    Hi Ali,

    Came across a problem when uploading a media item (.mp4) file to S3 from the media section.

    Getting an error message:

    "cannot close stream until all bytes are written"

    It creates the correct folder/file in the media folder (locally) but not on S3.

    I've tried to upload a .jpg file and that worked no problem, both are created locally and on S3.

    Wondering if you came across this?

    Running Umbraco 6.1.1.

    Let me know if you need more information.

     

    Vincent

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 04, 2013 @ 15:18
    Ali Sheikh Taheri
    0

    Hi Vincent,

    I've not had that problem before but can you tell me what's the size of mp4?

    Cheers

    Ali

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 05, 2013 @ 15:29
    Ali Sheikh Taheri
    0

    Hi Vincent,

    I've updated the timeout setting for S3.

    Pleaes download the following zip file extract the content in the bin folder of your project.

    Zip Content

    Hope it helps.

    Cheers

    Ali

  • Vincent Ritter 4 posts 35 karma points
    Oct 08, 2013 @ 14:54
    Vincent Ritter
    0

    Hi Ali,

    Thanks so much for the reply and the updated .dll.

    The size of the mp4 file is 36MB, not too big.

    I have tried again with the updated .dll but had no luck. It seems that once the upload commences that the website in question cannot be loaded in the browser (frontend). I can load the site in another browser no problem. I've tried this same procedure in different browsers with same results. It gets to 100% and hangs at that stage. The old .dll would have probably timed out and thrown the error at this stage.

    Very strange, I'll have a dig further.

    Currently tried it in Chrome 30.0.1599.69 m, and IE 10. Same results.

    Vincent

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 08, 2013 @ 14:59
    Ali Sheikh Taheri
    100

    Hi Vincent,

    Can you try this?

    first add

    <httpRuntime executionTimeout="360" maxRequestLength="990000" />
    

    then try:

    To solve this issue navigate to your inetsrv folder in your windows folder.

    cd %winsrv%\system32\inetsrv
    

    and run this code

    appcmd.exe set config "sitename" -section:requestFiltering -requestLimits.maxAllowedContentLength:size in bytes -commitpath:apphost
    

    sitename is the name you gave your site in IIS7, and size in bytes is well the maximum upload size in bytes.

    and please let me know the result

    Thanks

    Ali

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 15, 2013 @ 10:32
    Ali Sheikh Taheri
    0

    Hi Vincent,

    Any update on this?

    Cheers

    Ali

  • Vincent Ritter 4 posts 35 karma points
    Oct 15, 2013 @ 10:35
    Vincent Ritter
    1

    Hi Ali,

    I'm sorry but I didn't have a time to look at this yet.

    I really appreciate the help so far and will get back to you as soon as I can within the next couple of days.

    Thanks again,

    Vincent

  • Vincent Ritter 4 posts 35 karma points
    Oct 25, 2013 @ 11:22
    Vincent Ritter
    0

    Hi Ali,

    That worked a treat. Had to use IIS to change the settings instead of using command line.

    Seems like the web.config wasn't having any effect and something was overwritting it.

    Your updated .dll also helped greatly.

    Thank you for all the help.

    Vincent

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 25, 2013 @ 13:43
    Ali Sheikh Taheri
    0

    Hi Vincent,

    I am glad that helped. :)

    It would be perfect if you could share how you managed to change the setting through IIS!

    Cheers

    Ali

Please Sign in or register to post replies

Write your reply to:

Draft