Hi there,
I think I have the same kind of problem.
I use a form to upload an image file + submit 'standard' text fields. Form declared by: <form action="upload.php"
enctype="multipart/form-data" method="post">
Text fields aren't passed thru to the called page (upload.php).
Solution is to take off 'enctype="multipart/form-data"', then text fields are passed thru, but the file is not uploaded.
My files are hosted on www.free.fr.
Does anyone know how to pass all the data (file + text fields) with 'enctype="multipart/form-data"' ?
Thank you !
Alexander wrote:
Dear All,
I met a problem: on my new server, when I use METHOD=POST and ENCTYPE=MULTIPART/FORM-DATA for a form (to upload a file), I get strange things happened.
First of all, text fields seem to be passed incorrectly. Any text field from form after submitting it, has a newline symbol as the first symbol of it, even if I haven't input anything in the field.
Then, files which I upload through this form, seem to be broken somehow when they are uploaded. For example, if I upload a image, function GetImageSize does not recognize uploaded file as an image. I think, some newlines are added there to...
Please help me with an advice, what should be adjusted in configuration, or what should I use instead of MULTIPART/FORM-DATA... I appreciate.
Alex.