FileUpload Control HasFile property always null

Page 1 of 2 12 LastLast
  1. #1

    FileUpload Control HasFile property always null

  2. #2
    Hi @pfss,

    GetCmp() doesn't work well with a FileUploadField. Please take a look:
    http://forums.ext.net/showthread.php...ll=1#post72284

    Also you should use the "ispload: true" setting.
    Ext.net.DirectMethods.ImportarKML({ isUpload: true });
    And you might need to set up an id for the form explicitly to get the Window rendered into the form.
    <form id="form1" runat="server">
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @pfss,

    GetCmp() doesn't work well with a FileUploadField. Please take a look:
    http://forums.ext.net/showthread.php...ll=1#post72284

    Also you should use the "ispload: true" setting.
    Ext.net.DirectMethods.ImportarKML({ isUpload: true });
    And you might need to set up an id for the form explicitly to get the Window rendered into the form.
    <form id="form1" runat="server">
    Thanks, Daniil!

    I will test this on Thursday since it's Carnaval here in Brazil :)

    I'll post the result here!!
  4. #4
    Have a good carnival!:)
  5. #5
    Thanks, man! We've been resting at home and went to the beach. No carnival for us this year, LOL.
  6. #6
    Hey Daniil,

    It works, but after that I need the FileUploadField control to save the file to the server, like this:

    fileUploadKML.PostedFile.SaveAs(Server.MapPath(".\\") + file);
    Thanks, again!
  7. #7
    Nothing stops you to do:
    this.Request.Files[0].SaveAs("file name");
  8. #8
  9. #9
  10. #10
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: Sep 22, 2012, 8:08 PM
  2. [CLOSED] Missed FileUpload property of FormPanel
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 25, 2012, 11:57 AM
  3. [CLOSED] FileUpload HasFile property
    By mcfromero in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Mar 07, 2012, 2:39 PM
  4. Replies: 3
    Last Post: Nov 29, 2010, 3:52 PM
  5. [CLOSED] FormPanel FileUpload Property
    By turione in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 10, 2009, 7:42 PM

Tags for this Thread

Posting Permissions