LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File upload problem (https://www.linuxquestions.org/questions/linux-newbie-8/file-upload-problem-17187/)

saravanan1979 03-28-2002 04:28 AM

File upload problem
 
Hi
This is reg tha file upload problem .The problem i am facing is whenever i upload a word document innto my server(Redhat linux 6.2) via FTP or server side scripts, the non aphabetical characters get converted into their ASCII equivalent.(Page break gets conv into ---Page Break--- and so on).The document is not getting corrupted it is getting formated.But if i Zip this word doc it works fine.All other uploads(.txt,.gif,.jpeg work fine).Is there any setting problems????

Mara 03-28-2002 06:28 AM

I'd turn binary mode on. It should help.

Sixpax 03-28-2002 06:17 PM

Make sure you use "binary" mode BOTH ways, not just to upload.

donuteric 03-28-2002 10:43 PM

Yeah, do not use ASCII for the uploading. Instead of it, type "bin" in the ftp console, and everything should work fine. Thanks

saravanan1979 03-29-2002 02:59 AM

Re
 
Hi
Thanks everyone for ur advise but the saga continues.
The ftp type works fine if i set the upload type as binary.But i am facing problem in HTTP type of upload.For HTTP upload i am using a PHP script with Apache webserver.Can anyone tell me if have to make these settings in the Apache webserver or PHP.ini


All times are GMT -5. The time now is 03:43 PM.