Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
I have looked in the code for the file upload and no where can I find code to restrict image file size (kb)I would like to restrict image sizes to 35 kb.Thanks for the help.Scott
Scott,sure you can do this. You need to modify uploader.asp file for this purpose. Please see my changes in bold.
**
" end ifif Request.TotalBytes>0 and Request.TotalBytes<=35000 then' Instantiate Upload ClassSet objUpload = New clsUpload' Grab the file namestrFileName = objUpload.Fields("File1").FileNameSet objConn = Server.CreateObject("ADODB.Connection")Set objRs = Server.CreateObject("ADODB.Recordset")objConn.Open strConnectionobjRs.Open "SELECT " & strPK & ", " & AddWrappers(strField) & " FROM " & AddWrappers(strTable) & " WHERE " & sWhere, objConn, adOpenKeyset, adLockOptimisticobjRs.Fields(strField).AppendChunk objUpload("File1").BLOB & ChrB(0)objRs.UpdateobjRs.CloseSet objRs = NothingSet objConn = NothingSet objUpload = NothingResponse.Write "File has been saved in database<BR><BR>"end if**
I hope this helps.