Jump to content

"Undefined" image uploading problem: only from an user


Tom1884

Recommended Posts

Very strange issue: while I can correctly upload a product image, my friend (he works elsewhere) has "undefined" uploading problem.

He tried different browsers on differente pcs on different connections.

I've read about many fixes but... which is the correct for me? I'm not an expert. 
Thanks you for every hint...

 

(We're on Prestashop 1.5.3.1, can't upload.)

Link to comment
Share on other sites

Try this solution:

 

Edit the js file "fileuploader.js" located in the "js" folder
( js/fileuploader.js )           
 
Then go to line 1075
 
Replace
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
 
with these two lines of code
 
xhr.setRequestHeader("Content-Type", "application/octet-stream");
xhr.setRequestHeader("processData", false);
Link to comment
Share on other sites

Tnx, I've solved with this mod plus a mod on config (ini_set memory limit). Don't know which one made the day, maybe both together.
Hope someone else could fix it.

 

 

Try this solution:

 

Edit the js file "fileuploader.js" located in the "js" folder
( js/fileuploader.js )           
 
Then go to line 1075
 
Replace
xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
 
with these two lines of code
 
xhr.setRequestHeader("Content-Type", "application/octet-stream");
xhr.setRequestHeader("processData", false);

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...