What should I return in response to show error message on delete event for blueimp/jquery.file-upload-ui
问题 I am using jQuery File Upload jQuery UI Plugin 8.7.2 from https://github.com/blueimp/jQuery-File-Upload Uploading and deleting of files work successfully. But what should I return in response JSON to show error when deleting of file not finished correctly on server side. For example user have not access for this. This is my PHP code: $response = json_encode( (object) [ 'files' => [ $file->filename => true, ] ] ); return $response; 回答1: Heres how I do it in Laravel. You should change the loop