Closed azulkipli closed 5 years ago
I want to show custom error message from server why on onError doesnt have xhr parameter? this is response format from server
{ "data": [ { "cluster_id": 6, "denom": 10000, "description": "", "fee1": 0, "id": 1892, "margin": 0, "operator": "Axis", "priority": 1, "product_biller_id": 1, "product_name": "Axis Rp 10.000", "purchase_price": 11500, "remote_product_id": "0", "sell_price": 11000, "sku": "AXS10", "status": 1 }, { "cluster_id": 6, "created_by": 2, "description": "", "fee1": 0, "margin": 0, "priority": 1, "product_biller_id": 1, "purchase_price": 300000, "remote_product_id": "0", "sell_price": 300000, "sku": "AXZ300", "status": 1 } ], "errors": [ "(1062, \"Duplicate entry 'AXZ300-6' for key 'mprice_unique'\")" ], "jquery-upload-file-error": "broken_messages" }
how to show property jquery-upload-file-error
jquery-upload-file-error
onError callback format is onError(fileArray, httpStatus, msg, pd);
onError(fileArray, httpStatus, msg, pd);
fileArray is the list of files, msg -> is the "jquery-upload-file-error"
MSG is NOT the xhr. It's null.
I want to show custom error message from server why on onError doesnt have xhr parameter? this is response format from server
how to show property
jquery-upload-file-error