This project has moved and is read-only. For the latest updates, please go here.

Retrieving Selected File Size

Jan 7, 2011 at 6:11 PM

Is there a way to retrieve the size of the selected file that is displayed within the control using Javascript?

Thanks for your help.

 

Coordinator
Jan 7, 2011 at 6:31 PM

It wasn't possible. But it was only a small change, so now it it possible in the latest checkin:
http://slfileupload.codeplex.com/SourceControl/list/changesets

See the Lite_TestPage.html for example usage.
Javascript function: UpdateFileList();

userFile.FileSize

slCtl.Content.Files.FileList[i].FileSize

Hope this helps.