+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Error 404 when upload big file to videio library

Error 404 when upload big file to videio library

13 posts, 0 answered
  1. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    02 Sep 2010
    Link to this post

    Hi!

    I get error "404 - File or directory not found." when I'm trying to upload wmv file 180MB to my video library. I make changes in web.config for streaming as it said in this post: http://www.sitefinity.com/devnet/kb/sitefinity-3-x/how-to-enable-the-files-provider-for-images-and-documents-module-in-sitefinity-3-7-sp3.aspx. And also I set property <httpRuntime maxRequestLength="51200" /> to <httpRuntime maxRequestLength="512000" />. But error doesn't dissapear and I can't upload my file to the library. Why does It happend? Is this a bug or I should add something more to web.config?

    Thank you.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    02 Sep 2010
    Link to this post
    Hello Paul,

    Check Sitefinity.log if there is more information about the issue. Which is the exact page that is not found? Any stack or some other details will be helpful.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    02 Sep 2010
    Link to this post

    Hi Ivan!

    There is nothing in sitefinity.log. I can show you my IIS log information:

    2010-09-02 14:04:46 192.168.100.78 POST /sitefinity/admin/Modules.aspx module=Libraries&route=LibrariesControlPanel.LibraryItemsView.LibraryItemUpload%601&ParentId=b855413b-67c2-4977-b95b-06522d84997c&RadUrid=2b75af6c-3780-476a-87f0-ed66f1839fc6 80 - 192.168.100.39 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+ru;+rv:1.9.2.8)+Gecko/20100722+Firefox/3.6.8 404 13 0 0
    2010-09-02 14:04:48 192.168.100.78 GET /Telerik.RadUploadProgressHandler.ashx RadUrid=2b75af6c-3780-476a-87f0-ed66f1839fc6&RadUploadTimeStamp=1283436288011& 80 admin 192.168.100.39 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+ru;+rv:1.9.2.8)+Gecko/20100722+Firefox/3.6.8 200 0 0 203
    2010-09-02 14:04:48 192.168.100.78 GET /Telerik.RadUploadProgressHandler.ashx RadUrid=2b75af6c-3780-476a-87f0-ed66f1839fc6&RadUploadTimeStamp=1283436289805& 80 admin 192.168.100.39 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+ru;+rv:1.9.2.8)+Gecko/20100722+Firefox/3.6.8 200 0 0 203
    2010-09-02 14:04:50 192.168.100.78 GET /Telerik.RadUploadProgressHandler.ashx RadUrid=2b75af6c-3780-476a-87f0-ed66f1839fc6&RadUploadTimeStamp=1283436290524& 80 admin 192.168.100.39 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+ru;+rv:1.9.2.8)+Gecko/20100722+Firefox/3.6.8 200 0 0 218
    2010-09-02 14:04:51 192.168.100.78 GET /Telerik.RadUploadProgressHandler.ashx RadUrid=2b75af6c-3780-476a-87f0-ed66f1839fc6&RadUploadTimeStamp=1283436291557& 80 admin 192.168.100.39 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+ru;+rv:1.9.2.8)+Gecko/20100722+Firefox/3.6.8 200 0 0 203
    2010-09-02 14:04:52 192.168.100.78 GET /Telerik.RadUploadProgressHandler.ashx RadUrid=2b75af6c-3780-476a-87f0-ed66f1839fc6&RadUploadTimeStamp=1283436293337& 80 admin 192.168.100.39 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+ru;+rv:1.9.2.8)+Gecko/20100722+Firefox/3.6.8 200 0 0 203

    And finnaly it writes: 404 - File or directory not found. I only try to upload 180MB file.

    Why does it happen?

    Thank you.

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Sep 2010
    Link to this post
    Hi Paul,

    Could you check whether you have a folder in App_Data called Files. This folder should have a child folder Libraries where content data is stored. If the files are not created crate them manually. Let me know how it goes. We have tried uploading larger files without problems. You could also attach your web.config in case the issue persists.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    03 Sep 2010
    Link to this post

    Hi Ivan!

    I have folder Files in App_Data and also I have folder Libraries where I found my recently ulpoaded small video files. I ulpoad my big files manually: I upload small file and after that I renamed my big file in folder File/Libraries to guid of small file and now I have big file in video library. But this method is too manually. 

    Maybe 404 error can be caused by IIS settings? In web.config I only add attributes for libraries and set maxRequestLength attribute. 

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Sep 2010
    Link to this post
    Hi Paul,

    I am not able to reproduce these issues locally. What I suggest is that you should check/set the following parameters

    Maximum request filesize is globally controlled through the application web.config httpRuntime element.

    The maxRequestLength attribute specifies the limit for the input stream buffering threshold, in KB. This limit can be used to prevent denial of service attacks that are caused, for example, by users posting large files to the server.
    To enable large file uploads, you need to change the value of this attribute to the largest allowed combined file size for your application. If someone selects and uploads files, with total size larger than maxRequestLength, s/he will get the "Page not found" error (which is the default error of the Framework).

    If you use IIS 7 you should also modify requestLimits Element for requestFiltering (IIS Settings Schema) and maxAllowedContentLength attribute.


    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. LouiseBA
    LouiseBA avatar
    61 posts
    Registered:
    23 Mar 2010
    10 Aug 2011
    Link to this post
    Hi, I am successfully loading and playing flv files that I upload via the images and documents module on one server. The other server does not work. Even if i successfully upload them, I then cant 'download' them. I get 404 errors.

    im trying to establish why one server works and the other doesnt. However, neither server has this folder you mention. i.e. app_data/libraries.... how is it even displaying the flvs on the server that is working then if I cant see this folder? where are they stored?? thanks
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Aug 2011
    Link to this post
    Hello Louiseba,

    Most probably there are missing handler mapping for the sflb.ashx or other extensions you need.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. LouiseBA
    LouiseBA avatar
    61 posts
    Registered:
    23 Mar 2010
    10 Aug 2011
    Link to this post
    via web.config you mean or MIME types?? the site is identical on both servers bar SQL connection strings.

    Also can you tell me if I dont have that Files folder (either server).. where the flv's could be stored please?
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Aug 2011
    Link to this post
    Hello Louiseba,

    There are handler mappings in IIS responsible for processing requests. When the web.config files are identical on both the servers, then the problem is in the new IIS. Check its handler mappings and the support for serving static files.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. LouiseBA
    LouiseBA avatar
    61 posts
    Registered:
    23 Mar 2010
    11 Aug 2011
    Link to this post
    It was the IIS 6 handler mappings. thank you.
  12. Ishtiyaq
    Ishtiyaq avatar
    11 posts
    Registered:
    17 Sep 2011
    20 Oct 2011
    Link to this post
    I am unable to view the file. Please see the attached files for the issue to resolve. I am able to see the picture on IIS 7 web server but unable to see the picture in images module. Same with Documents and videos.
  13. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    20 Oct 2011
    Link to this post
    Hello Ishtiyaq,

    Can you make sure you have set all handler mappings correctly? Can you try and add the extensions from the attached screenshot and see if you can upload such files. Do you get any errors in the net tab when you are uploading content?

    Also uncheck 'Verify if file exists' checkbox located in your Wildcard Application Map setting.

    Regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
13 posts, 0 answered