|
my webhost is: http://www.domaindlx.com - www.domaindlx.com - my forum version: 7.01
the steps I made r as following:
1. I downloaded http://www.asp101.com/articles/jacob/upload_files_without_com_v2.zip - this file
2. i uploaded those two files: clsField.asp and clsUpload.asp in the functions folder (forum folder)
3. i didn't actually use the other files in the zip in anything
4. i followed the instructions mentionend in the link i gave u (i use Editplus as an editor and I think u should also use an editor that displays the line numbers as any mistake will make it not work)
here r the instructions:
Find these files and edit them like so:
----------------------------------------------- upload_configure.asp (inside the admin folder) -----------------------------------------------
On line 264, find this:
Code:
<option value="AspSimple"<% If strUploadComponent = "AspSimple" Then Response.Write(" selected") %>>AspSimpleUpload</option>
| | |
Below that, insert this:
Code:
<option value="none"<% If strUploadComponent = "none" Then Response.Write(" selected") %>>No Components</option>
| | |
----------------------------------------------- functions_upload.asp (inside the functions folder) -----------------------------------------------
On line 1, before the <% symbols, create a blank line and insert this:
Code:
<!--#INCLUDE FILE="clsUpload.asp"-->
| | |
On line 71, find these lines:
Code:
'Select which upload component to use Select Case strUploadComponent
| | |
Below those, insert this:
Code:
'****************************************** '*** Pure ASP Upload (no components) **** '******************************************
'Pure ASP (no components) Case "none"
'Create upload object Set objUpload = New clsUpload
With objUpload
'Grab the file name strNewFileName = .Fields("file").FilePath
'Remove the path from the file name strNewFileName = Right(strNewFileName, Len(strNewFileName)-InStrRev(strNewFileName, "\"))
'Replace spaces with underscores strNewFileName = Replace(strNewFileName, " ", "_", 1, -1, 1)
'Append the username to avoid duplicate filenames 'strNewFileName = strLoggedInUsername & "_" & strNewFileName
'Check the file size lngErrorFileSize = fileSize(.Fields("file").Length, intMaxFileSize)
'Check the extension blnExtensionOK = fileExtension(strNewFileName, saryFileUploadTypes)
'If the file is OK save it to disk If lngErrorFileSize = 0 AND blnExtensionOK = True Then
'Save the binary data to a file .Fields("file").SaveAs Server.MapPath(strFileUploadPath) & "\" & strNewFileName
&nbs
|
Posted By: india
Date Posted: 22 December 2003 at 10:35am
|
Nousha, which folder did u configure upload too ? What upload path u set in admin area ?
Did u create upload folder ? Did u give them write permissions ? If yes how ? and to match with upload folder, did you change anything in any file ???
thx
|
Posted By: nousha
Date Posted: 22 December 2003 at 2:11pm
|
i didn't actually create upload folder
u know there's an upload folder already - i didn't use that upload2 in the zip file or anything
i did nothing but uploading the clsField.asp and clsUpload.asp in the functions folder (forum folder) and edited the files mentioned above
luckily that my host does't require me to give write permissions as there are already
|
Posted By: india
Date Posted: 23 December 2003 at 1:35am
nousha wrote:
u know there's an upload folder already - i didn't use that upload2 in the zip file or anything
|
Thanks 4 ur reply. If im not wrong, Windows webhosts give read n write permissions by default bcuz CHMOD does NOT work on their servers. What path did u give 2 upload folder i n admin area ?
|
Posted By: Zagury
Date Posted: 23 December 2003 at 9:05am
|
What you mean when you say; enable the RTE ??
and sorry about my english.. i am an isreali
|
Posted By: india
Date Posted: 23 December 2003 at 9:22am
|
RTE is the RICH TEXT EDITOR which enabled u to make text bold etc very easily.
|
Posted By: Zagury
Date Posted: 23 December 2003 at 10:55am
|
Print Page | Close Window
Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net
|
| |