Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
I've not had that problem before but can you tell me what's the size of mp4?
I've updated the timeout setting for S3.
Pleaes download the following zip file extract the content in the bin folder of your project.
Hope it helps.
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.
Can you try this?
<httpRuntime executionTimeout="360" maxRequestLength="990000" />
To solve this issue navigate to your inetsrv folder in your windows folder.
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
Any update on this?
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.
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.
I am glad that helped. :)
It would be perfect if you could share how you managed to change the setting through IIS!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted