Ed Lazor wrote: > > I upgraded my web server and now file uploads don't work. A test script is > listed below. It puts the file on the server, but the file has > > Content-Type: image/pjpeg^M > ^M > > pre-pended to it, thus breaking the file. Do you know why it's doing this > and how to fix it? > This happens because you are dealing with DOS text in a unix environment. You can use dos2unix utility in order to correct this problem. Remenber, always transfer text files unix->dos->unix using ascii mode. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Please help - File Uploads, 2nd try
Gustavo Vieira Goncalves Coelho Rios Sat, 24 Feb 2001 13:29:59 -0800
- [PHP] Please help - File Uploads, 2nd... Ed Lazor
- Re: [PHP] Please help - File Upl... Gustavo Vieira Goncalves Coelho Rios
- Re: [PHP] Please help - File... Ed Lazor
- Re: [PHP] Please help - File Upl... Koncz Ádám
- Re: [PHP] Please help - File... Koncz Ádám