Latest transloadit js does not work with java

52 views Asked by At

I work on a Java web application and use Transloadit. Until http://assets.transloadit.com/js/jquery.transloadit2-v2.3.5.js it worked fine, but since http://assets.transloadit.com/js/jquery.transloadit2-v2.4.0.js is is broken. I have a normal html form:

<form action="http://api2.transloadit.com/assemblies" enctype="multipart/form-data" method="POST">

The Transloadit server receives the upload and, according to their server, sends a response back. I receive the response and try to read it:

public void doPost(HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException {

  StringBuffer jb = new StringBuffer();
  String line = null;
  try {
    BufferedReader reader = request.getReader();
    while ((line = reader.readLine()) != null)

According to Java there are no lines, thus Java thinks the body is empty. But when I use Transloadit js version 3.5 Java does see the lines...

Are there other Java programmers who use Transloadit?

0

There are 0 answers