Copied to clipboard

Flag this post as spam?

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


  • Medjeti 75 posts 126 karma points
    Sep 20, 2010 @ 16:51
    Medjeti
    0

    Hey Dan and Manny!

    Thanks for creating this excellent package, and great to see a small part of our MultiUpload package being used again!

    One question:

    Using the macro, I can manually set the sizeLimit to whatever I want.
    However, when used in the Media section the sizeLimit parameter seems to default to 4194304. Is there any way to change this (short of editing the .ascx manually)?

    Thanks in advance!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 22, 2010 @ 14:17
    Jeroen Breuer
    0

    I've got the same problem. This is my web.config:

    <httpRuntime requestValidationMode="2.0" maxRequestLength="102400" executionTimeout="3600" />

    Still if I upload a picture of 4.18 mb I get a File Size Error.

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 22, 2010 @ 14:46
    Jeroen Breuer
    0

    I've used reflector to look at the code an I found this:

    public UploadifyControl()
        {
            HttpRuntimeSection section = ConfigurationManager.GetSection("system.web/identity") as HttpRuntimeSection;
            if (section != null)
            {
                this.sizeLimitMB = section.MaxRequestLength / 0x400;
            }
            else
            {
                this.sizeLimitMB = 4;
            }
        }

    Is there something wrong with this code because it doesn't seem to work.

    Jeroen

  • Medjeti 75 posts 126 karma points
    Sep 22, 2010 @ 14:54
    Medjeti
    0

    Well, as a workaround you can manually specify a size-limit on line 26 of the usercontrol (~/usercontrols/gecko.Uploadify/Uploadify.ascx).

    This will override the sizeLimit paramter of the macro, but if you only use the package for backend uploading you should be fine.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 22, 2010 @ 15:00
    Jeroen Breuer
    0

    I only use it in the backend, but I still have this problem. Shouldn't GetSection("system.web/identity") be GetSection("system.web")?

    Jeroen

  • Emanuel 63 posts 283 karma points
    Sep 22, 2010 @ 15:31
    Emanuel
    0

    Hi all,

    Been quite busy at work, sorry for the lack of replies.

    Jeroen, I do believe you found the problem. Thanks! :)
    I have an updated DLL here that should work: http://geckohub.com/umbraco/Gecko.Uploadify.dll.zip
    Give it a go, and if it works, we'll update the package.

    Thanks for all the feedback and support!
    Emanuel

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 22, 2010 @ 15:47
    Jeroen Breuer
    0

    Hi Emanuel,

    I've downloaded the new DLL and now it works :). Thanks!

    Jeroen

  • dandrayne 1138 posts 2262 karma points
    Sep 22, 2010 @ 16:00
    dandrayne
    0

    Hi All

    I've now uploaded Emanuels latest fix in v 1.4.  Thanks for the bug reports!

    Cheers,
    dan

  • Medjeti 75 posts 126 karma points
    Sep 28, 2010 @ 19:12
    Medjeti
    0

    Awesome job, thanks for clearing things up!

  • Connie DeCinko 931 posts 1160 karma points
    Feb 07, 2011 @ 19:57
    Connie DeCinko
    0

    Is there no way to specify the size and file type restrictions in the Media section of the backend?

     

Please Sign in or register to post replies

Write your reply to:

Draft