The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Hallo !
I am looking for a MOD that allow user to menage their files uploaded in posts (delete, use again in other posts..) and allow me to give a kb limit of files uploaded. At moment the only way is to check the directory named for each user
Can someone suggest me a Mod ?
many thanx
<
I am looking for a MOD that allow user to menage their files uploaded in posts (delete, use again in other posts..) and allow me to give a kb limit of files uploaded. At moment the only way is to check the directory named for each user
Can someone suggest me a Mod ?
many thanx
<
Posted
Posted
Last edited by Desmomax on 02 March 2007, 10:41
Posted
I don't see why you couldn't. You should have everything in place to do that already now. You should just have to wrap the check max file size code in pop_upload_new and outputfile in a similar check (if mLev<3).<
Posted
Originally posted by PPSSWeb
I don't see why you couldn't. You should have everything in place to do that already now. You should just have to wrap the check max file size code in pop_upload_new and outputfile in a similar check (if mLev<3).
thanks, but i am not sure to know where exact insert the code in pop_upload_new and outputfile...
Posted
I believe the code is the same in both files. Look for:
and change it to:
I don't have a chance to test this myself right now, but I believe this will do what you want. Try it out and let me know.<
Code:
'##### check max file size
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
rsSize.close
set rsSize = nothing
If strAllowedSize < 1024 Then
strAllowedSize = Round(strAllowedSize,2) & " Bytes"
ElseIf strAllowedSize < 1048576 Then
strAllowedSize = Round(strAllowedSize/1024,2) & " KB"
Else
strAllowedSize = Round(strAllowedSize/1048576,2) & " MB"
End Ifand change it to:
Code:
strAllowedSize = "Not Restricted"
AllowSize = True
'##### check max file size if mLev<3 only
IF (mLev<3)
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 then
AllowSize = true
else
AllowSize = false
end if
rsSize.close
set rsSize = nothing
If strAllowedSize < 1024 Then
strAllowedSize = Round(strAllowedSize,2) & " Bytes"
ElseIf strAllowedSize < 1048576 Then
strAllowedSize = Round(strAllowedSize/1024,2) & " KB"
Else
strAllowedSize = Round(strAllowedSize/1048576,2) & " MB"
End If
End IfI don't have a chance to test this myself right now, but I believe this will do what you want. Try it out and let me know.<
Posted
Originally posted by Desmomax
unfortunally i cant do that..
i dont know so well asp
<
Posted
Is there any reason you made that post @bobby131313
Posted
Sorry Huw, it was an accident, a google search took me straight to post.asp on the old site with this already filled in. I somehow accidentally posted it.
Posted
Sorry Huw, it was an accident, a google search took me straight to post.asp on the old site with this already filled in. I somehow accidentally posted it.Originally posted by bobby131313No prob
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...