Author |
Topic |
|
pastor
Starting Member
5 Posts |
Posted - 10 June 2002 : 06:32:56
|
Hello everyone!
Sorry for raising an issue that had been raised many times here, but I desperately need an opportunity to add attachments (MS Word, Excel, zip) to forum posts.
Have attempted to install HuwR's mod to the latest Snitz without luck.
Have downloaded HuwR's modified forum/portal -- attachments work fine only if they are txt or asp files. As soon as I try to attach a *.doc file I receive an error
Server object error 'ASP 0177 : 800a0005' Server.CreateObject Failed /forum3/include/clsFile.inc, line 89
The file is created in the uploaded folder with zero length.
Please give me your advice or recommend another forum alternative that would allow to attach files to posts.
Thanks in advance |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 10 June 2002 : 06:58:09
|
this is a directory permissions problem, you need to allow MODIFY permissions under NTFS as well as read and write. If that does not work, it is either related to scriptblocking in your antivirus software or the character encoding of your uploaded files.
It is not related to the mod or the code.
|
|
|
pastor
Starting Member
5 Posts |
Posted - 10 June 2002 : 08:37:05
|
Hello HuwR
Thank you for your reply. NTFS permissions are Ok, so is character encoding (latin characters a-z only). The error appears when I try to upload files other than txt or asp. As soon as I attempt to upload zip or doc I get this error. I do have NAV CE 7.6 installed, but those files are virus free and I see no reason for NAV to block the files from being uploaded.
Therefore I'd like to ask this question again: is there any workaround for the problem? If no, what other boards/forums are available that would allow to use attachments and have a calendar feature?
|
|
|
pastor
Starting Member
5 Posts |
Posted - 18 June 2002 : 12:39:46
|
Hello HuwR
I've just re-read more attentively what you've said:
quote: it is either related to scriptblocking in your antivirus software or the character encoding of your uploaded files
Does this mean that only text files can be uploaded? What about *.zip, *.doc? Of course their character encoding is specific and in clsFile.inc the error is thrown in here:
Set objFile = objFSO.CreateTextFile(strPath & "\" & m_strFileName) For lngCounter = 1 To LenB(m_vntBlob) objFile.Write Chr(AscB(MidB(m_vntBlob, lngCounter, 1))) if (lngCounter mod 10240) = 0 then response.write ". " Next objFile.Close
I am uploading a non-text file and above the CreateTextFile is called for the FSO. The question is how do I upload non-text files? |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 18 June 2002 : 13:55:27
|
No, you can upload any file that you allow.
what are the NTFS permissions for th IUSR_DOMAIN account set to ?
|
|
|
pastor
Starting Member
5 Posts |
Posted - 20 June 2002 : 06:01:18
|
The NTFS permissions are set to "Everyone: Full Control". I've also tried to apply "IUSR_...: Full Control" -- no success either.
Once again, files that contain plain text in them (asp, txt, bat, whatever) are uploaded without any problem, but as soon as I try to upload a non-text file: the file is physically created in the uploads folder (0 length!) and the following error is thrown:
Server object error 'ASP 0177 : 800a0005' Server.CreateObject Failed /forum3/include/clsFile.inc, line 89
I suspect that non-text information cannot be written to the file with the CreateTextFile method of the FSO. This block causes an error with non-text uploads
Set objFile = objFSO.CreateTextFile(strPath & "\" & m_strFileName) For lngCounter = 1 To LenB(m_vntBlob) objFile.Write Chr(AscB(MidB(m_vntBlob, lngCounter, 1))) if (lngCounter mod 10240) = 0 then response.write ". " Next objFile.Close
|
|
|
BogieMan
New Member
USA
88 Posts |
Posted - 20 June 2002 : 14:27:34
|
could this be as simple as you didn't set the file types in the admin area of the forum?
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 June 2002 : 15:36:39
|
quote:
I suspect that non-text information cannot be written to the file with the CreateTextFile method of the FSO. This block causes an error with non-text uploads
Set objFile = objFSO.CreateTextFile(strPath & "\" & m_strFileName) For lngCounter = 1 To LenB(m_vntBlob) objFile.Write Chr(AscB(MidB(m_vntBlob, lngCounter, 1))) if (lngCounter mod 10240) = 0 then response.write ". " Next objFile.Close
I will have to disagree, since I have several hundred uploaded files that would show otherwise
|
|
|
pastor
Starting Member
5 Posts |
Posted - 21 June 2002 : 04:24:35
|
What's the problem then? Why is this error thrown?
quote: could this be as simple as you didn't set the file types in the admin area of the forum?
No, file types are set ok and the file IS ACTUALLY CREATED but with ZERO LENGTH and the error is thrown |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 21 June 2002 : 04:39:56
|
quote:
what are the NTFS permissions for th IUSR_DOMAIN account set to ?
|
|
|
|
Topic |
|