Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 file sharing mod - problem upload files
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pokemon
Junior Member

151 Posts

Posted - 01 March 2004 :  17:56:35  Show Profile
Hello all,
I have downloaded file sharing mod 2.51 I think it latests version. After instalation, everything ran just find on localhost. I Now give limit per upload file to 1 mb. on my localhost i upload any file from 1000 kbs and it works just find, no problem. When i ftp to my web site hosting company. I try to upload the files. It is very strange it only take from 100 kbs, if i'm uploading any file over 100 kb and i'm having this error.


Request object error 'ASP 0104 : 80004005'

Operation not Allowed

/phorum/inc_UploadDefault.asp, line 4


Here is my code:

<%
'################################################
' ADMIN SETTINGS
'################################################

'###-change this to enable/disable part/ALL the file sharing MOD (uploading ,downloading and everything)
disableUpload=false
disableDownload=false
disableAllFileSharing=false

'################################################
' FILE SHARING MODE
'################################################
'Select which mode of file sharing you want to use:
'1:Default Members Shared Files:
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
' ->each MEMBER has his own global shared files directory named with his memberID
' and is shared with other members.
'2:Forum Shared Files:
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
' ->Each FORUM has its own directory, and in each forum selected members may upload into those forum their shared files
' ->members who have access to more than one forum under any category will have different folders in different
' seperated forum directories.
' ->useful in cases you want to seperate each forum to have its own members and files.
sharedFilesMode=1

'################################################
' THUMBNAIL MODE
'################################################
'set the following variable to create thumbnails on the fly (using asp code)
'0: no thumbnails at all
'1(default): thumbnails will be viewed by simply changing width and height (no components used)
'2: to use persits ASPJpeg to create the thumbnail
' SITE:www.persits.com
' VER:1.2
' PRICE:see website
'3: to use serverobjects.com's ASPimage component to create the thumbnail
' SITE:www.serverobjects.com
' VER:2.X
' PRICE:see website
ASPThumbMode=1
'-set width and height of the thumbnail
thumbWidth=100
thumbHeight=100

'################################################
' FILE CATEGORY SETTINGS
'################################################
'DESC:
'if set to true, user can set the uploaded file's category. if kept in private then
' this file cannot be view by anyone but can be attached to a pm or topic for download
' ie downloadable but not listed.
'this is excellent since members may browse files using categories.

'set false to disable members from selecting a category for each file
fileCatMode=true
'create the category list.
'you can add as much as you like here, but just make sure you change
' the correct array size
redim fileCatList(3)
fileCatList(0)="websites"
fileCatList(1)="Games"
fileCatList(2)="pictures"
fileCatList(3)="Programs"

'MODERATOR SETTINGS:
'if following variable was set to true, then moderators will be able to
' edit,move,delete and rename any files and folders
' including admin and other moderators
allowFullModeratorAccess=true
'enter list if moderator member IDs SEPERATED BY COMMAS that you want to
' grant access to any member's files
'NOTE: if you want ALL moderators to have full access set following variable
' to empty string, ie ""
allowedModeratorList="2,3"


'array of allowed file types
allowFileType = Array("jpg", "jpeg", "gif", "zip", "pdf", "doc","swf","fla","exe","txt","rar")
'maximum allowed individual file upload size in bytes
maxByteSize = 1*1024^2
'set colors used to display the file's type of share(show,hide,dont share) set by member
colorShare="#33CC00" 'files shared by all other members
colorHide="#FF0000" 'files hidden buy yet downloadable by other members(case link was enterd in a topic).
colorDontShare="#FF6600" 'files not shared at all. cant be viewed or even downloaded (except by owner ofcourse).

'set the maximum allowed file info text length to be entered per file
maxFileDescLength = 300
'maximum MINUTES to wait for upload (changes scriptTimeout value when uploading only)
maxUploadTime=25
'choose whether to use aspUpload Componenent or not
aspComponent=false
'Choose wether to display the upload status bar or not(NEEDS ASPUPLOAD 2 BE ENABLED FIRST)
aspComponentStatusBar=false
'Set where the files icons are placed using virtual path from root
fileIconsPath="/phorum/fileicons/"

'set the maximum no of file uploads and total file size
' case default file shared mode:value per member
' case forum file shared mode:value per forum per member
'set it to "unlimited" for unlimited no of uploads and file size 8-D
'FILES:
maxMemberFileNo = 25
maxModeratorFileNo = 25
maxTotalFileSize=5*1024^2
'SUBFOLDERS:
maxMemberSubFolderNo = 5
maxModeratorSubFolderNo = 5

'Sharing settings:
'set whether allow or don't allow the member to be able to set each
' of their file sharing mode to be share/hide/not-shared with other
' members or guests

'Sharing modes available to members(if enabled by admin):
'1-Share: member/guest will be able to list file and download it
'2-Hide: member/guest wont be able to list file in the members folder, but he/she may download it
' if member owner gives the file link (ie through a post)
'3-Not Shared: member/guest wont be able to list file or even download it.

'NOTE:
' -admins in all cases (disabled or not) can change the sharing level
' -IMP:if you set setGuestsShare to true, then guests will be able
' to view files uploaded and your members will be able to decide
' whether to share them or not.

setMembersShare=true
setGuestsShare=false 'NOTE:setting this to 'true' will allow guests to view members files if member choose to

'################
' Paths
'################
'NOTE: YOU MUST FIRST CREATE THE ACTUAL PATHS WRITTEN IN ALL VARIABLES HERE ELSE MOD WONT WORK AT ALL
'NOTE: ALL OF THE FOLLOWING VARIABLES SHOULDNT END WITH A "\" NONE OF THEM
'physicalUploadFolder -> path to physical location of uploading
'physicalUploadTextFolder -> path to store text files containg file information

physicalUploadFolder = "c:\hosting\website\phorum\upload"
physicalUploadTempFolder = "c:\hosting\website\phorum\temp"
physicalUploadTextFolder = "c:\hosting\website\phorum\text"
logFilePath = "c:\hosting\website\phorum\logfiles"

'#######################################################
' DO NOT EDIT PAST THIS PART
'#######################################################

if sharedFilesMode=2 then
%><!--#INCLUDE FILE="inc_UploadFuncForum.asp" --><%
end if

'split allowedModeratorList to an array
if trim(allowedModeratorList)<>"" then
allowedModeratorList=split(trim(allowedModeratorList),",")
end if
'#####################################################
'Change Current Path case 2nd mode and forumID exist
'#####################################################
if request("forumID")<>"" and sharedFilesMode=2 then
physicalUploadFolder = physicalUploadFolder & "\" & request("forumID")
physicalUploadTextFolder = physicalUploadTextFolder & "\" & request("forumID")
end if

'#################################################################
' change global link of membersFiles.asp according to mode
' NOTE: the "?d=d" doesnt do anything at all.BUT DONT REMOVE IT!
'#################################################################
if sharedFilesMode=1 then
commonMemFilesURL = "membersFiles.asp?d=d"
elseif sharedFilesMode=2 then
if request("forumID")<>"" then
commonMemFilesURL = "membersFiles.asp?forumID=" & request("forumID")
elseif request("catID")<>"" then
commonMemFilesURL = "membersFiles.asp?d=d"
else
commonMemFilesURL = "membersFiles.asp?d=d"
end if
end if

%>
<!--#INCLUDE FILE="inc_UploadFunc.asp" -->



Edited by - pokemon on 01 March 2004 17:57:16

Mindcontrol
New Member

52 Posts

Posted - 07 March 2004 :  01:08:52  Show Profile
What does line 4 say?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07