Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-02-2006, 03:18 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
requestfilesize()?

Something similar to requesturl but would return the value of a size (like an mp3 file or something?)
Reply With Quote
  #2  
Old 09-02-2006, 11:00 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
Reply With Quote
  #3  
Old 09-02-2006, 05:05 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
yeah, I mean directly from an mp3 file off a website.
Reply With Quote
  #4  
Old 09-02-2006, 05:19 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote
  #5  
Old 09-02-2006, 05:28 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:13 AM.


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