[CLOSED] FileUploadField

  1. #1

    [CLOSED] FileUploadField

    It seems as if I get an exception if I put a to big file in the FileUploadField.

    In this code I get the error "Maximale Anforderungslänge überschritten" which would be something like "Maximum requirement length exceeded."

            internal static bool HasInputFieldMarker(HttpRequest request)
            {
                if(request == null)
                {
                    return false;    
                }
    
                string marker = request.Form["__CooliteAjaxEventMarker"];
                if (!string.IsNullOrEmpty(marker))
                {
                    if (marker.ToLower().Contains("delta=true"))
                    {
                        return true;
                    }
                }
                return false;
            }
  2. #2

    RE: [CLOSED] FileUploadField

    Hi Sharon,

    Maybe playing with the httpRuntime settings in the web.config will help solve the problem.


    Example


    <httpRuntime maxRequestLength="524290" executionTimeout="1800" />

    The node above should be placed within the <system.web>.


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] FileUploadField

    I have another problem. I use this function to clear the value of the upload field:

        function clearFileUploadValue(FileUploadId) {
          var fileUpload = &#100;ocument.getElementById(FileUploadId);
          var clonedFileUpload = fileUpload.cloneNode(false);
          clonedFileUpload.onchange = fileUpload.onchange;
          clonedFileUpload.value = "";
          fileUpload.parentNode.replaceChild(clonedFileUpload, fileUpload);
        }
    The worked with an asp FileUpload but not with the coolite version.

    While it clears the value without any problems and I can select another file without any problem, I don't see the name in the textfield anymore.

    Any way to fix that? Otherwise I have to change back to asp, I need that functionality.
  4. #4

    RE: [CLOSED] FileUploadField

    Hi,

    Try to call
    #{FileUploadField1}.reset();
     
  5. #5

    RE: [CLOSED] FileUploadField

    Thanks. Works. :)
  6. #6

    RE: [CLOSED] FileUploadField

    How to Save file in FileUploadField ?
    As used to do in Asp.net .SAVEAS("path")
  7. #7

    RE: [CLOSED] FileUploadField

    Try

    NameOfUploadField.PostedFile.SaveAs("path");

Similar Threads

  1. [CLOSED] [1.1] FileUploadField Note
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 29, 2013, 10:58 AM
  2. [CLOSED] FormPanel and FileUploadField
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 13, 2011, 10:49 PM
  3. [CLOSED] [1.0] FileUploadField Render
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 11, 2010, 9:10 PM
  4. [CLOSED] [1.0] - MVC - How to get FileUploadField's Content
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 02, 2010, 1:14 PM
  5. [CLOSED] FileUploadField
    By majestic in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 08, 2010, 11:31 AM

Posting Permissions