What's the best way to upload larger video files to the media library? And by larger files, I meen in the ~50mb area. I tried using the desktop uploader but it wont accept .mp4 files.
I'm not limited to the media library. A seperate uploader could be made, but it would fit more nicely into the umbraco structure if the video files were in the media library.
The DMU does in fact allow you to upload .mp4 files. However it seems like 2 things need to be in order before it will accept them.
1) The video/mp4 mimetype must be set in the web.config 2) The <httpRuntime maxRequestLength="524288" executionTimeout="3600" /> must of course be set to a number a little higher than the size of the file you're trying to upload.
This should to the trick for you.
However you might need to be aware of one more thing since I vaguely recall reading something about you may also need to increase the allowed file-size in another config file somewhere if files are bigger than 60MB before the DMU accepts it. But not 100% sure on that.
Does the standard Upload DataType support video file uploads, or is the error related to the database table that should be storing the videos? Regardless, I have videos I need to upload to my Umbraco solution. I'd prefer to do this under a "Featured Videos" folder in my Media section. What is the best course of action to accomplish this task?
Hi Jan. Sorry for the lack of details; my brain is a bit fried from going through so much documentation and code today.
I'm currently using Umbraco 7. Also, I do receive an error message when attempting to upload a video to the Media section of my Umbraco solution. Here is what I'm doing:
1. Under my "Featured Videos" folder (located in the Media section of the backoffice) I'm trying to create a new File media type. The File media type is using an Upload datatype as a property, which I'm using in attempts to upload an MP4 video (this is similar to how I was able to upload pictures).
2. After browsing my machine for the desired MP4 video, I select the save button.
3. Umbraco attempts to upload the video and I receive a vague error.
The error states:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: :
Stack Trace:
Except there is no Stake Trace information listed. Thanks for the recommendation. What section of the web config should I include the code you suggested?
The empty error message seems to be the result of a conflict between the web server framework (IIS for example) and the umbraco web-based IDE. I was never able to get around this through Umbraco. Instead I opted to use CDN services for the majority of my media and the umbraco CMS as a platform to enable configurability to the client.
Anyone found a solution for this? Is the cause of this issue known yet? I have increased both attributes in the web.config regarding the max upload size but to no avail. My image of 30 Mb results in the aforementonioned blank error message.
Weird thing is that I do get a preview of the image in the ImageCropper property. It's only on save that the error occurs.
I had to add the following as well to make it work:
Add this to the web.config:
Run c:\windows\system32\inetsrv\appcmd set config "My-Website" -section:system.web -requestLimits.maxRequestLength:104857600 -commitpath:apphost in the CMD.exe. Apparently there is another default max size of 30 Mb set in IIS.
Besides that we noticed a different error when uploading larger files when umbracoUseSSL was set to true.
Best way to upload larger media files
Hey everybody
What's the best way to upload larger video files to the media library? And by larger files, I meen in the ~50mb area. I tried using the desktop uploader but it wont accept .mp4 files.
I'm not limited to the media library. A seperate uploader could be made, but it would fit more nicely into the umbraco structure if the video files were in the media library.
Any experience you would like to share?
Hi Thomas
The DMU does in fact allow you to upload .mp4 files. However it seems like 2 things need to be in order before it will accept them.
1) The video/mp4 mimetype must be set in the web.config
2) The <httpRuntime maxRequestLength="524288" executionTimeout="3600" /> must of course be set to a number a little higher than the size of the file you're trying to upload.
This should to the trick for you.
However you might need to be aware of one more thing since I vaguely recall reading something about you may also need to increase the allowed file-size in another config file somewhere if files are bigger than 60MB before the DMU accepts it. But not 100% sure on that.
Hope this helps.
/Jan
Hi Jan
Thanks for the rapid reply. I'll dig into this tonight.
I'll let you know how it turns out.
Best
/Thomas
Hi Jan,
there are another posibility, too:
You can upload the files via FTP and install the "Import Media"-package (http://our.umbraco.org/projects/backoffice-extensions/import-media). With this package you can integrate the files easily to the media section.
Sören
Hi Sören
Yes this is indeed also an option. However if the DMU can handle the job I think it's the most efficient of the two methods imho :)
/Jan
I would have loved to use the DMU, but I cannot make it work.
The package Sören sugested, did the trick for me :)
Thanks!
Hi Thomas
Ok, well as long as you're able to move forward :)
/Jan
I'm unable to upload any videos to the Media section of my Umbraco backoffice whatsoever.
I added the following mimeMaps to the staticContent section of my webconfig to no avail:
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".m4v" mimeType="video/m4v" />
Does the standard Upload DataType support video file uploads, or is the error related to the database table that should be storing the videos? Regardless, I have videos I need to upload to my Umbraco solution. I'd prefer to do this under a "Featured Videos" folder in my Media section. What is the best course of action to accomplish this task?
Hi Jacob
What version of Umbraco are you using?
And do you get any error messages when trying to upload?
Perhaps you need to increase the the amount of bytes that can be uploaded in the web.config on the following line
Hi Jan. Sorry for the lack of details; my brain is a bit fried from going through so much documentation and code today.
I'm currently using Umbraco 7. Also, I do receive an error message when attempting to upload a video to the Media section of my Umbraco solution. Here is what I'm doing:
1. Under my "Featured Videos" folder (located in the Media section of the backoffice) I'm trying to create a new File media type. The File media type is using an Upload datatype as a property, which I'm using in attempts to upload an MP4 video (this is similar to how I was able to upload pictures).
2. After browsing my machine for the desired MP4 video, I select the save button.
3. Umbraco attempts to upload the video and I receive a vague error.
The error states:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: :
Stack Trace:
Except there is no Stake Trace information listed. Thanks for the recommendation. What section of the web config should I include the code you suggested?
hi jan,
don't suppose you ever got a solution to your issue?! i've hit the same problem today - the same empty error message...
cheers,
jake
The empty error message seems to be the result of a conflict between the web server framework (IIS for example) and the umbraco web-based IDE. I was never able to get around this through Umbraco. Instead I opted to use CDN services for the majority of my media and the umbraco CMS as a platform to enable configurability to the client.
Hi,
Anyone found a solution for this? Is the cause of this issue known yet? I have increased both attributes in the web.config regarding the max upload size but to no avail. My image of 30 Mb results in the aforementonioned blank error message.
Weird thing is that I do get a preview of the image in the ImageCropper property. It's only on save that the error occurs.
btw: Umbraco 7
Sandor
Hi Sandor
Could you show us what your configuration looks like now?
Maybe you have not increased the amount enough.
/Jan
Hi Jan,
Here you go
I believe it is more than enough.
Sandor
Hi Sandor
Ok, you need to set the maxRequestLength to a higher number. And also I think you should set the executionTimeout higher.
Please try this - It sets the max to around 500MB like youe have in the requestLimits and set the timeout to 30 min.
Hope this helps.
/Jan
Which section of the web config do I need to paste this line?
Hi Jan,
I had to add the following as well to make it work:
Besides that we noticed a different error when uploading larger files when umbracoUseSSL was set to true.
So which section of the web config I need to paste the following line?
is working on a reply...