0

Im using BluImp file uploader. Greate little script that I've used forever.

Now I have scoured there forum and cant find anything but after debugging, I believe it is more of a permissions/restrictions/settings problem.

Once the upload has appeared to have finished, an error is returned:

Error: SyntaxError: Unexpected end of input

After debugging it is cause by any functions writing to the server, i.e. file_put_contents, move_upload_file....

The file is 1.47 mb

my additional ini alterations are

max_execution_time = 1600
max_input_time = 1600
post_max_size = 128M
upload_max_filesize = 128M 

Can anyone see anything that I dont?

regards

Also I forgot to add that it does not happen to all files just a few

12
  • start with a 10k file, does that work ? Commented Oct 3, 2012 at 20:57
  • Is this a PHP error? or a JS error? Commented Oct 3, 2012 at 20:58
  • @Dagon just uploaded a 1,567kb PDF Commented Oct 3, 2012 at 21:05
  • if you add print_r($_FILES); it will show you the error code of the issue. Error Messages Explained Commented Oct 3, 2012 at 21:08
  • Do you restrict by MIME type in your code? Since some files upload, perhaps the different types of files are giving you grief? Commented Oct 3, 2012 at 21:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.