I think that UploadController::handleUploads() should return an AjaxResponse instead of a JsonResponse. It doesn't break anything since AjaxResponse is a subclass of JsonResponse, and it opens the door to DropzoneJS possibly taking advantage of the core AJAX system (running commands on the client side and so forth) when uploads occur.

CommentFileSizeAuthor
dropzonejs-ajax-response.patch1.16 KBphenaproxima
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

phenaproxima created an issue. See original summary.

  • Primsi committed fb8166d on 8.x-1.x authored by phenaproxima
    Issue #2729427 by phenaproxima: UploadController should return an...
Primsi’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.