Author |
Topic  |
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 26 March 2001 : 13:49:26
|
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
|
 |
|
peakhour
Starting Member
Taiwan
8 Posts |
Posted - 01 April 2001 : 09:08:02
|
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. 
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 01 April 2001 : 09:27:01
|
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.
|
 |
|
peakhour
Starting Member
Taiwan
8 Posts |
Posted - 05 April 2001 : 02:08:34
|
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.

|
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 05 April 2001 : 05:04:05
|
All the processing is done by the inc files I think you will find there are no <% %> tags in them, they are Class definitions
|
 |
|
StiH
Starting Member
Slovenia
15 Posts |
Posted - 10 April 2001 : 02:40:42
|
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 |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 10 April 2001 : 03:05:10
|
The FileSystemObject is usually enabled by default. |
 |
|
StiH
Starting Member
Slovenia
15 Posts |
Posted - 10 April 2001 : 04:26:59
|
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 |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 10 April 2001 : 04:29:55
|
try running mod_dbsetup.asp .
if it runs, then the FileSystemObject is enabled. |
 |
|
Topic  |
|