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. ASP.Net Uploading Problem

ASP.Net Uploading Problem

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
8 Posts 3 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.
  • K Offline
    K Offline
    King Shez
    wrote on last edited by
    #1

    HI Guys the problem i am facing is that, when the user uploads the file in my application greater then 4 MB , the white page "page of death comes in front of the user",i know this is the default limit of ASP.NET which can be increased too in web.comfig and machine.config, but i don't want it to increase the file uploading size limit in web.config or machine.config, what is the solution for this ASP.NET uploading problem,plz reply ASAP, thankx in advance.

    A 1 Reply Last reply
    0
    • K King Shez

      HI Guys the problem i am facing is that, when the user uploads the file in my application greater then 4 MB , the white page "page of death comes in front of the user",i know this is the default limit of ASP.NET which can be increased too in web.comfig and machine.config, but i don't want it to increase the file uploading size limit in web.config or machine.config, what is the solution for this ASP.NET uploading problem,plz reply ASAP, thankx in advance.

      A Offline
      A Offline
      Andrei_KS
      wrote on last edited by
      #2

      Hi, I think you can use next attribute in web.config -

      K 1 Reply Last reply
      0
      • A Andrei_KS

        Hi, I think you can use next attribute in web.config -

        K Offline
        K Offline
        King Shez
        wrote on last edited by
        #3

        but wht if the user uploads the file greater then the max request length mentioned in web.config, the application will be going to crash, how to handle this situation ,when user uploads the file greater then the max request length mentioned in web.config,plz reply me asap, thankx for ur reply.

        A 2 Replies Last reply
        0
        • K King Shez

          but wht if the user uploads the file greater then the max request length mentioned in web.config, the application will be going to crash, how to handle this situation ,when user uploads the file greater then the max request length mentioned in web.config,plz reply me asap, thankx for ur reply.

          A Offline
          A Offline
          Andrei_KS
          wrote on last edited by
          #4

          You can use client JavaScript for verify file size. And if this size greater, you dont make DoPostBack.

          1 Reply Last reply
          0
          • K King Shez

            but wht if the user uploads the file greater then the max request length mentioned in web.config, the application will be going to crash, how to handle this situation ,when user uploads the file greater then the max request length mentioned in web.config,plz reply me asap, thankx for ur reply.

            A Offline
            A Offline
            Andrei_KS
            wrote on last edited by
            #5

            See next link Check file size with Javascript

            _ 1 Reply Last reply
            0
            • A Andrei_KS

              See next link Check file size with Javascript

              _ Offline
              _ Offline
              _AK_
              wrote on last edited by
              #6

              But this depends on the user whether he has activeX enabled or not. This cannot be the safe methods. I think server side checking will also be required. :)

              Best Regards, Apurva Kaushal

              A 1 Reply Last reply
              0
              • _ _AK_

                But this depends on the user whether he has activeX enabled or not. This cannot be the safe methods. I think server side checking will also be required. :)

                Best Regards, Apurva Kaushal

                A Offline
                A Offline
                Andrei_KS
                wrote on last edited by
                #7

                Then I think you can see HttpModule and so on (handler for upload file's). See next link's - HttpHandler or HttpModule for file upload, large files, progress indicator? and HttpModule and upload files.

                K 1 Reply Last reply
                0
                • A Andrei_KS

                  Then I think you can see HttpModule and so on (handler for upload file's). See next link's - HttpHandler or HttpModule for file upload, large files, progress indicator? and HttpModule and upload files.

                  K Offline
                  K Offline
                  King Shez
                  wrote on last edited by
                  #8

                  man i don't know much abt http handler - http modules , where to write the code of it in code behind files,class or in whihc file ?

                  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