blueimp/jQuery-File-Upload — Issue #738: Change filename
Author: argra
Created: 2011-10-28 18:54:11+00:00
State: open

Hi there,

I've changed the code a bit to generate new filenames to all uploaded files.
I've added
$ext = array_pop(explode(".", $name));
$name = trim($this->generate_filename(8).'.'.$ext);
right after
private function handle_file_upload($uploaded_file, $name, $size, $type, $error) {

It kinda works. All the uploaded files get a random name etc, BUT i always get the response
"Error: SyntaxError: JSON.parse: unexpected character "
even though it works. If I refresh the page I get the list of uploaded files and the errors message disappears. So eveything seems to be working but I still get an error message.