[CLOSED] FileUploadField doesn't work as should

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] FileUploadField doesn't work as should

    Hi,

    what I tryed to do today was upload file to my server path. fuFileUpload is a
    <ext:FileUploadField runat="server" ID="fuFileUpload"/>
    I did this in my saving logic:
                    byte[] buffer = new byte[fuFileUpload.PostedFile.ContentLength;];
                    fuFileUpload.PostedFile.InputStream.Read(buffer, 0, simpleFile.Data.FileSizeBytes);
                    //after Read operation array buffer is like a new object got every time only 0 values of all positions
    after 3hours of trying this things worked i simply changed to
    <asp:FileUpload runat="server" ID="fuFileUpload"/>
    and its worked with asp.net control like a dream.

    It's seems to be a bug. Please let me know if it's work with above example and what should I changed to make this work with ext.net.FileUploadField.

    Thanks,
    ViDom
    Last edited by Daniil; Jul 19, 2012 at 3:41 PM. Reason: [CLOSED]
  2. #2
  3. #3
    Quote Originally Posted by Daniil View Post
    Danii thats work.
    but why this read method doesn't work and why there is no examples on your page example which will show this functionality?

    Without this examples of such a funcionality it's really hard to know why things like this one doesn't work:(

    Thanks
  4. #4
    Quote Originally Posted by ViDom View Post
    but why this read method doesn't work
    I think it should work. Please provide more details. Is the FileUploadField within the <form>?
    <form runat="server">
    Quote Originally Posted by ViDom View Post
    why there is no examples on your page example which will show this functionality?
    Well, we have such example.
    https://examples1.ext.net/#/Form/FileUploadField/Basic/

    A file is uploaded in the "Form Example" at the bottom.
  5. #5
    Yeah Danii FileUploadField is in
    <form runat="server">
    also got
    <ext:ResourceManager runat="server"/>

    This example which you provide got no code for saving files with it. Have only some code of uploading which i assumed do nothing. I suggest to make more detail examples there. Display isn't such important than functionality i gues ;)
  6. #6
    Well, the server functionality is the same as it is with <asp:FileUpload> :)

Similar Threads

  1. Northwind example doesn't work in IE9
    By Const in forum 1.x Help
    Replies: 10
    Last Post: Dec 09, 2011, 3:04 AM
  2. Replies: 7
    Last Post: Oct 14, 2011, 9:59 AM
  3. Replies: 7
    Last Post: Mar 28, 2011, 4:51 PM
  4. FileUploadField can't work
    By Fresh.Killer in forum 1.x Help
    Replies: 1
    Last Post: Dec 07, 2009, 8:26 AM
  5. Keymap doesn't work
    By Kamal in forum 1.x Help
    Replies: 2
    Last Post: Aug 13, 2009, 10:49 AM

Tags for this Thread

Posting Permissions