|
-
Jun 23rd, 2005, 11:32 AM
#1
Thread Starter
Member
size of file to download
hello.
i am sorry to have posted in this forum coz im not sure where to post my question..
i am using jsp and i have a page that allows users to download excel/pdf/csv formatted files..problem is i need to display the file size of the file to be downloaded.(eg download (100KB) )..
can anyone help me with this? or at least lead me to existings threads about this one...
thanks a lot..
-
Jun 23rd, 2005, 04:31 PM
#2
-
Jun 23rd, 2005, 04:33 PM
#3
Fanatic Member
Re: size of file to download
try this:
Code:
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fileObject = fso.GetFile(Server.MapPath("\fso\") & "\myfile.txt")
Response.Write fileObject.Size & " bytes"
PS: this probably should have been submitted in the Java or the XML, HTML, Javascript, Web and CGI section
-
Jun 24th, 2005, 08:13 AM
#4
Thread Starter
Member
Re: size of file to download
-
Jun 24th, 2005, 08:19 AM
#5
Fanatic Member
Re: size of file to download
the language i was using was JSP
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|