Hi,
i'am trying to post image to web server using QHttpMultiPart, and ewerything was fine until i moved my php part to new web server... now images i'am saving have only 4bytes and when i try to open them in browser it says that the file is corrupted. What can be the couse of such behaving ?
on request finished replay var_dump($_POST) gives me this:
array(3) {
["idx"]=>
string(2) "10"
["qname"]=>
string(9) "test1.jpg"
["qfile"]=>
string(4) "˙Ř˙ŕ" << here is the problem, length is only 4
}
array(3) {
["idx"]=>
string(2) "10"
["qname"]=>
string(9) "test1.jpg"
["qfile"]=>
string(4) "˙Ř˙ŕ" << here is the problem, length is only 4
}
To copy to clipboard, switch view to plain text mode
but when i post to old server i get
array(3) {
["idx"]=>
string(2) "10"
["qname"]=>
string(9) "test1.jpg"
["qfile"]=>
string(112871) "˙Ř˙ŕ << here length is ok
array(3) {
["idx"]=>
string(2) "10"
["qname"]=>
string(9) "test1.jpg"
["qfile"]=>
string(112871) "˙Ř˙ŕ << here length is ok
To copy to clipboard, switch view to plain text mode
in wireshark post looks fine for me. Code i'am using is taken form QHttpMultiPart class reference, so it's pretty basic.
thanks for any help and sorry for my poor english.
Bookmarks