This topic is locked

Record file size on file upload

9/24/2007 8:35:34 AM
ASPRunnerPro General questions
I
ioWinter author

I seem to remember a discussion on recording the file size of an uploaded file.
I've made a file catalog table in SQL Server.
I'd like the user to Add New, record some details about the file (into fields like Category, Description etc.), browse for the file, and on upload have the file size recorded along with the other data they've entered...
Any ideas?
Thanks.

J
Jane 9/26/2007

Hi,
try to use this code:

dict("FileSizeField") = lenb(GetRequestForm("file_FileField"))



where FileField and FileSizeField are your actual field names.

I
ioWinter author 9/27/2007

Hi,

try to use this code:
where FileField and FileSizeField are your actual field names.


That's excellent Jane - Thanks.