PDA

View Full Version : Incredibly Stupid Question?


Bobba Buoy
06-21-2005, 08:18 AM
But I want to know for sure...is there any reason that I can not install Office on my Win2003 Server? I am having web users upload files to my server and it works well if they upload a *.txt file but anything else comes out in gibberish. Could that be because office isn't installed on my server?

Thanks!

putts
06-21-2005, 08:20 AM
When you say "comes out as gibberish" exactly what do you mean?

Are you trying to open it with something or is it during the upload or what?

Bobba Buoy
06-21-2005, 09:34 AM
It comes out as squares and unintelligible symbols. Lets say the file that is uploaded is a Word file. The file is uploaded to the server just fine from a process standpoint. I have yet to open it on the server but I use MS VisualInterdev and when I open it on the local machine (which does have MSOffice) I get the above-referenced symbols.

I should have opened it on the server but I have not done that yet and I am away from my computer right now. I have only opened the local copy. Sorry~

afterburn
06-21-2005, 09:49 AM
Well because the program you are opening the document with can not read outside of the ASCII character range with is 0-255, and that is extended it should be 0-127.

Office can read unicode which most other windows applications ignore.

Bobba Buoy
06-21-2005, 10:28 AM
Meaning? Is the problem that I don't have Office on the server or is my upload code bad? I wrote the code based on an asp upload utility created by Doug Dean, if you are familiar.

afterburn
06-21-2005, 10:46 AM
Mean that you shouldn't have office on a server. Meaning that you do not have a program that can view it.

Instead you should have an admin section to download the files.

Bobba Buoy
06-21-2005, 11:45 AM
ok, that helps a lot. It is dissappointing though because it seems then that there must be something wrong with my upload code.

I want users to be able to upload documents that other users can download or attach to emails. The obvious approach, I thought, was to upload/download from the server and leave it up to the client-side to view the documents. However, if I try to view the document from my machine (not a server) that does have office and I can't view it then there must be a problem with the upload, right?

Let me know if this assessment is correct please. If it is, it is thanks to you and I appreciate your help!

afterburn
06-21-2005, 12:17 PM
what are they attempting to upload and attach the file? look at the headers of the document, it should have reference to the file type or something that it should be.

Horus_Kol
06-22-2005, 03:18 AM
can we view the code for your upload script?

Bobba Buoy
06-22-2005, 07:07 AM
I actually dumped the one I was using, which involved creating an ActiveX dll component (which came with great reviews) and switched to one that was totally asp and it is working fine.

Thanks for the help, all!

Horus_Kol
06-22-2005, 08:56 AM
hehe.... fair enough...