Issue uploading images/non text files to Rackspace Cloudfiles (MisMatchedChecksumException) via PHP API?

Up vote 0 down vote favorite share g+ share fb share tw.

I am having an issue uploading to Rackspace Cloudfiles. I am able to upload anything that is text based (text/html, text/plain etc) but anything else I try fails with the MisMatchedChecksumException which, as I understand it, means the md5_file() on my end doesn't match their computation at their end? If I don't set the etag (and so this check is not made) the file is uploaded but not correctly, so for example images have the same size but just don't render?

Does anyone have any tips for how to get past this? Php file-upload rackspace-cloud rackspace cloudfiles link|improve this question asked Sep 28 '11 at 19:23TSed11.

$fname = basename('test. Jpg'); $md5 = md5_file($fname); $container = $conn->get_container('my_container'); $o2 = $container->create_object($fname); $o2->content_type = "image/jpeg"; $o2->set_etag($md5); $result = $o2->load_from_filename($fname); assert('! Is_null($result)'); assert('$o2->getETag() == $md5').

Thanks for answering, I found it was an issue with my PHP version/installation, I tried on a different machine and it worked fine! – TSed Jan 20 at 23:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions