Теперь у меня есть этот код в javascript.Можно ли загружать файлы на S3 из браузера в IE8?
var file_object = $('#PHOTO').get(0).files[0];
the_form = new FormData();
the_form.append("AWSAccessKeyId", "TESTING");
the_form.append("acl", "authenticated-read");
the_form.append("policy", policy);
the_form.append("signature", signature);
the_form.append("Content-Type", "image/jpeg");
the_form.append("key", "test.jpg");
the_form.append("file", file_object);
$.ajax({
url: "http://S3BUCKET.s3.amazonaws.com",
type: "POST",
data: the_form,
processData: false,
contentType: false
})
Работает сладко, в Chrome, Firefox, кроме IE6,7,8,9.
Причина в том, что файловый объект не поддерживается до IE10!
https://developer.mozilla.org/en-US/docs/Web/API/File
Есть ли обходные решения для браузеров до IE10?
PS: Пример кода будет приятным !!