Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Using git pulled two days ago I get the error: Error uploading file! Error :Unexpected end of input
Error uploading file! Error :Unexpected end of input
When I try to upload an image to a category. Not sure if it's a bug but can't seem to figure out why.
Are you on latest? Tested on my dev environment and seems to work for me.
@baris Yeah I pulled a fresh git two days ago.
Any idea where I should start to look to diagnose it?
Lots of commits in the last two days please git pull the latest code, clear cache and try again. There has been some changes to the file upload code.
@baris Alright I'll do it a bit later. Every time I do a stash then pop after a git pull it always breaks my install so I have to do a clean pull every time then re-modify all the tpl files I modified. Make me a sad panda.
I probably just suck at git.
@baris I updated to today's and still having the same issue.
Can you provide a link to the image file so I can test it on my dev environment?
@baris I can attach it here? I'm just trying to upload it from my Desktop.
I just uploaded on my dev environment and it works
Can you add a console.log(req.body.params) in here :
console.log(req.body.params)
https://github.com/designcreateplay/NodeBB/blob/master/src/routes/admin.js#L109
That code seems to be throwing an error for you.
@baris I have no words. I added that, tried again and it worked. I really, really wish I was making this up.
rofl cache? don't worry mysterious console.log fixing totally broken code has happened to me before too
Hahah glad it is resolved
Thanks all for the help