Results 1 to 4 of 4

Thread: A simple project for websites which......

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    K, now how about a project which....

    Its simply a form which you tell it a website filename and click a button then it tells you the size of the file.

    I have said this because I have been asking around and it seems no-one knows how to get the size of a file which is on a website.

    Even one that needs the username and password of the owner will do
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    Registered User Lior's Avatar
    Join Date
    Jan 2000
    Posts
    307

    there is a way for doing it, but it sucks

    Hi,
    there simplest most idiot dumb way for it is downloading the whole file, then checking its size.
    VERY idiotic when trying it on large files.

  3. #3

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    No wrong answer....

    No that won't work cause I need some code that will get the size of a file while it is still being uploded. Because As I have noticed when a file is uploaded it registors as if it exists even before it is fully uploaded. And in the case It stops part way though it exists as a set size which refelects how far into the download it got(when you compare it to the origanal copy on local PC).

    This is what I would use the code for, to check the progress of a uploading file.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Use the .getHeader

    Code:
    MsgBox inet.getHeader("Content-Length:")
    Have Fun
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

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



Click Here to Expand Forum to Full Width