Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Upload file without file uploade control

Upload file without file uploade control

Scheduled Pinned Locked Moved ASP.NET
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lrsalunkhe
    wrote on last edited by
    #1

    Respected, Can me upload a file without file uploade control. Thanks.

    S A A A 4 Replies Last reply
    0
    • L lrsalunkhe

      Respected, Can me upload a file without file uploade control. Thanks.

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      Try this..! http://stackoverflow.com/questions/569565/uploading-files-in-asp-net-without-using-the-fileupload-server-control

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      1 Reply Last reply
      0
      • L lrsalunkhe

        Respected, Can me upload a file without file uploade control. Thanks.

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        FileUpload and input type="file" is the same thing. You might use either of them. You can even trigger the Browse button click when some other control is clicked, but with normal html, it is not possible to upload the file without browser FileUpload. May be you can use flash object to invoke openfiledialog without FileUpload control. Many sites uses Flash OpenFileDialog to have multiselection of files enabled. It wont be possible for normal html file upload control. ;P

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Simplify Code Using NDepend
        Basics of Bing Search API using .NET
        Microsoft Bing MAP using Javascript

        1 Reply Last reply
        0
        • L lrsalunkhe

          Respected, Can me upload a file without file uploade control. Thanks.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          lrsalunkhe wrote:

          Can me upload a file without file uploade control.

          Why ? :confused:

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          1 Reply Last reply
          0
          • L lrsalunkhe

            Respected, Can me upload a file without file uploade control. Thanks.

            A Offline
            A Offline
            April Fans
            wrote on last edited by
            #5

            You can use js to upload file. Please refer to the following example: <script> function mCreateFile(obj){ var eF var mName mFileName.innerHTML="" if (obj.id=="File") { for (i=0;i <mFile.l.length-1;i++) { if (mFile.children[i].value=="") { mFile.removeChild(mFile.children[i]) } else { mName=mFile.children[i].value.split("\\") mFileName.innerHTML+=" <div id=NameDetail title='"+mName[mName.length-1]+"'>"+mName[mName.length-1]+" </div>" } } mstatus.innerHTML="There are <b>"+(mFile.children.length-1)+" </b> file to upload" } if (obj.id=="File_New") { eF=document.createElement(' <input type="file" name="File" size="23" id=File_New onpropertychange="mCreateFile(this)">') mFile.appendChild(eF) obj.id="File" } } </script>

            April Comm100 - Leading Live Chat Software Provider

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups