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
 HuwR, help! Mod problems!
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 26 March 2001 :  13:49:26  Show Profile  Visit HuwR's Homepage
quote:

Well.. it IS an encoding problem. I uploaded a *.doc file and this is what happens:

the original file (viewed with windows commander viewer):
ŠĻą”±į >  ž’     ƒ  ž’’’  € ’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’ģ„Į 9 $ ųæ

and this is what happens to the uploaded file:
Ia!±į >  y     f  yyy  € yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyiYĮ 9 $ o


Now I'm no expert on such stuff, but from what I can see (and from the code) all files are uploaded as plain ascii files. Txt files are not affected by this because they are ASCII, but all other file formats (.doc, .zip. mdb...) should be uploaded as an octet-stream.

I tried to play around with MIME types on the web server but with no success...

Any ideas appreciated...

Have a nice day!
StiH



This is not strictly correct, the code opens a file text stream to which it writes the byte stream of the form input, it makes an exact byte by byte copy of the file, it should not be affected in any way by mime types. They are not uploaded as plain ASCII

Go to Top of Page

peakhour
Starting Member

Taiwan
8 Posts

Posted - 01 April 2001 :  09:08:02  Show Profile  Visit peakhour's Homepage  Send peakhour an ICQ Message
I have the same problem of corrupted files of zip, doc, ... etc.

I think it's problem of UNICODE and DBCS!

in MSDN, there is a solution for DBCS, but in vein too.... because VBscript don't support StrConv function....
====
Function MidMbcs(ByVal str As String, start, length)
MidMbcs = StrConv(MidB(StrConv(str, vbFromUnicode), start, length), vbUnicode)
End Function
====


If you can find a way to translate the StrConv function into vbscript. It maybe works. Please let me know if you find out something. Thank you.



Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 01 April 2001 :  09:27:01  Show Profile  Visit HuwR's Homepage
The file upload is performed by a vb class object, it is not VBscript, the class performs all the necesary unicode conversion.

I really don't know what is causing your problems, I have tested this on several different servers which supported the fso, and have been unable to replicate the error.

Go to Top of Page

peakhour
Starting Member

Taiwan
8 Posts

Posted - 05 April 2001 :  02:08:34  Show Profile  Visit peakhour's Homepage  Send peakhour an ICQ Message
quote:

The file upload is performed by a vb class object, it is not VBscript, the class performs all the necesary unicode conversion.

I really don't know what is causing your problems, I have tested this on several different servers which supported the fso, and have been unable to replicate the error.






???

Any VB code in <%%> should be process by IIS and interpret by VB script engine. That is VBscript.





Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 05 April 2001 :  05:04:05  Show Profile  Visit HuwR's Homepage
All the processing is done by the inc files I think you will find there are no
<% %> tags in them, they are Class definitions

Go to Top of Page

StiH
Starting Member

Slovenia
15 Posts

Posted - 10 April 2001 :  02:40:42  Show Profile  Visit StiH's Homepage  Send StiH an ICQ Message
Well I have some time to spend on my problem again and I installed a new Win2000 Server for development purposes so I have another question. Since I'm not that familiar with IIS and ASP (been using it occasionally for less then a year) I'd like to ask you where can I check if my web server supports FSO? I've been trying to find something about this subject in MSDN but haven't had the time to go throught it thoroughly. Hopfully there'll be some time to spend on this untill the end of the week (too much work bites). And I HAVE to have this solved by monday because I need the forum on-line. :(



Have a nice day!
StiH
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 April 2001 :  03:05:10  Show Profile
The FileSystemObject is usually enabled by default.
Go to Top of Page

StiH
Starting Member

Slovenia
15 Posts

Posted - 10 April 2001 :  04:26:59  Show Profile  Visit StiH's Homepage  Send StiH an ICQ Message
quote:

The FileSystemObject is usually enabled by default.



Are there any speciall settings that I can try and that affect the Filesystem mod?

Have a nice day!
StiH
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 April 2001 :  04:29:55  Show Profile
try running mod_dbsetup.asp .

if it runs, then the FileSystemObject is enabled.
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07