File Manager? - Posted (8648 Views)
New Member
Desmomax
Posts: 55
55
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
<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
New Member
Desmomax
Posts: 55
55
Originally posted by Desmomax
i tried to modify as you suggest, but i still receive the error on line 5 of upload.asp :(

Did you force a reload on the upload pages and clear your cache after changing the link?
Yes, i tried but still the same error... sad<
Posted
New Member
Desmomax
Posts: 55
55
May i ask you something more? :)

now, with your fix, my >3 level users (moderators, admin) dont have a limit in their upload folder... is it possibile to do not apply as well the max file size limit set with this mod ?
thanks
<
Posted
Junior Member
PPSSWeb
Posts: 312
312
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
New Member
Desmomax
Posts: 55
55
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...dead<
Posted
Junior Member
PPSSWeb
Posts: 312
312
I believe the code is the same in both files. Look for:
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 If

and 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 If

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.<
Posted
New Member
Desmomax
Posts: 55
55
many thanx! it works.. now the FILE MANAGER IMHO is absolutely complete! this should be inserted in a origninal mod or a new one.. <
Posted
Senior Member
bobby131313
Posts: 1163
1163
Originally posted by Desmomax
unfortunally i cant do that..
i dont know so well asp
<
Posted
Forum Admin
HuwR
Posts: 20611
20611
Is there any reason you made that post @bobby131313
Posted
Senior Member
bobby131313
Posts: 1163
1163
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
Forum Admin
HuwR
Posts: 20611
20611
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 bobby131313
No prob smile
You Must enter a message