Presta.shop Posted May 31, 2018 Share Posted May 31, 2018 Hola me sale el error undefined siempre que intento subir una imagen, hace un rato estaba todo bien. He leído en el foro de cambiar las siguientes lineas de texto en el archivo js/fileuploader.js xhr.open("POST", queryString, true); xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xhr.setRequestHeader("X-File-Name", encodeURIComponent(name)); xhr.send(file); Pero en vez de ese código me aparece el que dicen que esta bien xhr.open("POST", queryString, true); xhr.setRequestHeader("Content-Type", "application/octet-stream"); xhr.setRequestHeader("processData", false); xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xhr.setRequestHeader("X-File-Name", encodeURIComponent(name)); xhr.send(file); Alguna ayuda? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now