Help: progress bar for file uploading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jinn
    Confirmed User
    • Nov 2001
    • 72

    #1

    Help: progress bar for file uploading

    I am thinking to write a script for visitors to upload multiple files. I wrote one in PHP. But I find when I upload large files or many files, the browser will give some random error after a long time of uploading (seems the uploading takes longer time than browser timeout). Is there any way to show an uploading progress bar? I heard PHP can't do that. Is that true? I suppose Java, JSP, ASP or JavaScript can do it, but I know almost nothing about them. Could you please give me a hint? I am on Unix server, so probably ASP won't work for me (?). Also, is there special requirement / installation on the server side to run a JSP script? (yeah, you are right, I know nothing about it )

    Thanks for any help

    Jinn
  • TheFireman
    Registered User
    • Oct 2001
    • 28

    #2
    You might try using a .gif file that says "uploading" or something with a moving bar. It wouldn't track the true upload but it would at least let them know its doing something!

    Comment

    • Jinn
      Confirmed User
      • Nov 2001
      • 72

      #3
      But it won't solve the timeout problem. I suppose the program should do this: after upload, say, 10kb, the progress bar is refreshed and the bar is move forward a little bit. This way, only 10kb memory is required on the server side and the refresh won't timeout the browser. Any one know how to do it? Thanks!

      Comment

      • Amputate Your Head
        There can be only one
        • Aug 2001
        • 39075

        #4
        you should be able to do it with java or Flash... but you'll have to look into the details yourself... it'd take me all day to post the mechanics of it.
        SIG TOO BIG

        Comment

        • Jinn
          Confirmed User
          • Nov 2001
          • 72

          #5
          Originally posted by Amputate Your Head
          you should be able to do it with java or Flash... but you'll have to look into the details yourself... it'd take me all day to post the mechanics of it.
          Does java require any installation on the server side? I think that JSP does. Do you know any good places to search java scripts? I believe someone should have already done that. Flash also sounds fun, but again, I am not very familiar to it, either

          Comment

          • Amputate Your Head
            There can be only one
            • Aug 2001
            • 39075

            #6
            Check here. I think they may even have a prepackaged javascript to do exactly what you're looking for. Shouldn't be too complicated.
            SIG TOO BIG

            Comment

            • Jinn
              Confirmed User
              • Nov 2001
              • 72

              #7
              Damn, can't find anything from the site you mentioned. Still trying...

              Comment

              • ServerGenius
                Confirmed User
                • Feb 2002
                • 9377

                #8
                Hit me up on ICQ and I send you the code.
                The board doesn't allow me to write it here!

                ICQ 10662921

                DynaMite
                Last edited by ServerGenius; 03-12-2002, 11:43 AM.
                | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

                Comment

                • Jinn
                  Confirmed User
                  • Nov 2001
                  • 72

                  #9
                  Originally posted by DynaSpain
                  Hit me up on ICQ and I send you the code.
                  The board doesn't allow me to write it here!

                  ICQ 10662921

                  DynaMite
                  Oops, I don't have ICQ. Could you please email me? [email protected] Thank you very much!

                  Comment

                  • WildWebAmateurs
                    Registered User
                    • Nov 2001
                    • 37

                    #10
                    Actually, you can do it with non-parsed headers..

                    http://www.google.com/search?hl=en&q...=Google+Search
                    WILD WEB AMATEURS
                    http://www.wildwebamateurs.com
                    [email protected]

                    Comment

                    Working...