I am using the Proeder's Upload MOD. In it you set the file size limit that users can upload. I would like the admin and moderators to be able to add larger file sizes. How would I do that?
I believe the code that deals with the upload file size is below:
strSQL = "SELECT UPLOAD_VALUE FROM " & strTablePrefix & "UPSIZE WHERE UPLOAD_VAR = 'STRUPLOADFILESIZE'"
set rsSize = my_Conn.Execute (strSQL)
strAllowedSize = rsSize("UPLOAD_VALUE")
if bytecount < strAllowedSize then
AllowSize = true
else
AllowSize = false
end if
strSQL = "SELECT UPLOAD_VALUE FROM " & strTablePrefix & "UPSIZE WHERE UPLOAD_VAR = 'STRUPLOADFILESIZE'"
set rsSize = my_Conn.Execute (strSQL)
strAllowedSize = rsSize("UPLOAD_VALUE")
if bytecount < strAllowedSize or mLev>2 then
AllowSize = true
else
AllowSize = false
end if
Depends on the size of the file too. How big of a file are you trying to upload and does it work if you temporarily bump up the upload size restriction in the code the way it was?
I have it set for 5MB. I was trying to upload an 11MB file. It seems regardless of if I change the code to allow admin/mods upload more or if I set it in the admin panel to let everyone upload that size, it times out.
My timeout setting in the admin panel is 3600 which = 1 hour.
For the purpose of large files I've implemented a PHP based solution on a subdomain (see q.oxle.com) which is hosted on much cheaper PHP hosting. There uploading 50MB files isn't even a problem ; it still takes ages, but it doesn't time out. The link to that upload page was added to Snitz for all non-moderator members and guests. That way they can attach images/files etc to their posts without using the more expensive ASP hosting.
I have it set for 5MB. I was trying to upload an 11MB file. It seems regardless of if I change the code to allow admin/mods upload more or if I set it in the admin panel to let everyone upload that size, it times out.
My timeout setting in the admin panel is 3600 which = 1 hour.
That would seem to point to either a server problem/configuration issue or the code just can't handle 11MB files.
What version of Windows Server are you running on?