Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6
  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default Uploading Status?

    When you upload a file into cPanel, it says the status of it.
    How long let etc..

    Is there any way of doing this with php and javascript with a normal php upload?

  2. #2
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    I'd imagine it gets your upstream speed and calculates from there onwards.

  3. #3
    Join Date
    Dec 2007
    Location
    Manchester
    Posts
    2,236
    Tokens
    118
    Habbo
    hamheyelliot

    Latest Awards:

    Default

    You'd need AJAX probably.
    Not too sure about it myself.

  4. #4
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    I'm not sure how cPanel does it, but what you could do is record the filesize in a session and then check the file size of the uploaded file every 3 seconds or whatever until it's the same size as the original file.

  5. #5
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Stumbled across this - http://pecl.php.net/package/uploadprogress - might come in handy
    I know there are ways with javascript and stuff aswell.

    Also, just found this - http://www.codeproject.com/KB/webfor...gress_Bar.aspx

  6. #6
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Trinity View Post
    Stumbled across this - http://pecl.php.net/package/uploadprogress - might come in handy
    I know there are ways with javascript and stuff aswell.

    Also, just found this - http://www.codeproject.com/KB/webfor...gress_Bar.aspx
    Wow, I need this too.

    Thanks, +REPped.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •