Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   requestfilesize()? (https://forums.graalonline.com/forums/showthread.php?t=68506)

KuJi 09-02-2006 03:18 AM

requestfilesize()?
 
Something similar to requesturl but would return the value of a size (like an mp3 file or something?)

Skyld 09-02-2006 11:00 AM

Do you mean the filesize of a file from the gserver, or from a specified URL?

If you mean from a specified URL, I think either requestURL or requestHTTP will return the filesize header from the HTTP server where possible.

KuJi 09-02-2006 05:05 PM

yeah, I mean directly from an mp3 file off a website.

Admins 09-02-2006 05:19 PM

When doing obj = requesturl(url) you can get the total file size by reading obj.contentlength on clientside once the header is loaded, although that will try to download the whole file

KuJi 09-02-2006 05:28 PM

Quote:

Originally Posted by Stefan
When doing obj = requesturl(url) you can get the total file size by reading obj.contentlength on clientside once the header is loaded, although that will try to download the whole file

Well, I am making a "iPod" (diff name called - gPod :P)

So I want to make it so they can only have a certain amount of space total, running a for loop to check all there songs size might cause major lag to the server using requesturl :o. I'll probally end up doing a number of songs I guess.


All times are GMT +2. The time now is 02:33 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.