November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Are you able to create blocks and other media files?
What version are you on?
Have you recently upgraded episerver?
Checked file access for IIS_IUSERS on folder where blobs are stored?
Using forms authentication?
Any console errors?
Are you able to create blocks and other media files?
What version are you on?
Have you recently upgraded episerver?
Checked file access for IIS_IUSERS on folder where blobs are stored?
Using forms authentication?
Any console errors?
If I remember correctly, I think you can hover the "failed" text with your mouse pointer, and you should see a bit more information.
Checked access rights for folder in admin so you have access in Episerver for it?
Since you can create blocks it's not that you have wrong id on globalassetsfolder. Forms authentication means that as long as you apppool account have access you should be fine. Code looks good. You are sure you are actually uploading an image with the extension above? :)
Ah, the infamous hover. I forgot that some of the fields in Epi have the hover. Thanks for reminding me about it. I got a "timeout or file size exceeded" message on the hover action over the Failed message. I think the hover action should be made a bit more obvious in Epi. That's one of my complaints with the "Description" for properties as well, since your average user won't expect to be able to hover over seemingly plain looking text and get more information.
Now I have something to work off of, though!
I tried setting the max length values in the Web.config per http://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2014/8/Upload-media-file-Timed-out-or-max-file-size-exceeded/ to see if it made a difference, but it hasn't changed anything. Is there anything different with newer versions of Epi?
File size should be the MaxRequestLength attribute on httpruntime element in Web.config...(Still)
Hi everyone,
Can you please indicate me where I need to place the code above? I've been having problems uploading images.
I am not quite sure if I have to place the code on the Epi CMS or on the Terminal of my computer (MacBook).
Thanks you in advance!
Hi Omar,
Making the assumption that you are asking where you configure the file size limits and not how to create Episerver media content types.
The upload file size is configured in web.config, see this post for example - so it is the web.congif file in your Episerver project.
You need to set the two values
maxRequestLength which is in the system.web -> httpRuntime attribute (can be also set under the location element, to have different limits per location, NOTE! Episerver default web.config has the value set by default to 1000000 in the [locationa path="EPiServer"] (or the UI path you have configured).
maxAllowedContentLength, which is IIS feature configuration in web.config as shown in the above linked blog post. For this to work, you mus have the IIS featre 'Request Filtering' installed, see MS Documentation.
NOTE! These values use different unit! maxRequestLength uses kilobytes and maxAllowedContentLength uses bytes.
So to limit uploads to 100MB
I am in need of some smarter brains to help me troubleshoot an issue with an ImageFile upload. I set up an "ImageFile" type, inheriting from ImageData, to be able to add image files to Episerver. The implementation is pretty straight forward:
To upload an image I open the content sidebar, navigate to the Media tab, select a folder, and press + icon to add a new one. When I select an image to upload and hit okay, it goes through the upload process, shows the status bar, and then shows a "Failed" status. Interestingly, the content sidebar refreshes and shows the image, and the log files in App_Data don't show any updates or messages related.
Does anyone have any ideas on this? What can I check? What can I look for?
Thanks.