Can I get jquery file upload to work through ajax to amazon s3? -


so, trying jquery file upload work amazon s3.

actually, upload working. file uploads fine. but, issue is, @ end of request receive following error. in firefox.

xml parsing error: no element found location: moz-nullprincipal:{230dddca-13b5-4268-a9d4-4f4dcbbc8a0e} line number 1, column 1: 

i not error @ in chrome. has come across this, , if so, have remedied it?

amazon s3 cors setup

<?xml version="1.0" encoding="utf-8"?> <corsconfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">   <corsrule>     <allowedorigin>*</allowedorigin>     <allowedmethod>get</allowedmethod>     <allowedmethod>post</allowedmethod>     <allowedmethod>put</allowedmethod>     <allowedheader>*</allowedheader>   </corsrule> </corsconfiguration> 

okay, i'm not sure language writing backend. however, fixed including property called 'success_action_status' , setting string "201" in policy. had include same parameter in xhr upload form s3.

you can read valid properties here: http://docs.aws.amazon.com/amazons3/latest/api/restobjectpost.html

however, says setting default should return blank response should valid. think firefox expecting xml response (bug w/ firefox?), receiving empty document in cannot parse. setting "success_action_status" "201", returns xml document ready parsing.

hope helps!

justin

note: make sure "201" string when gets encoded policy. had issue w/ php in defaulting value integer, resulted in yet amazon error returned 403.


Comments