import org.apache.commons.httpclient.methods.RequestEntity;
-import eu.alefzero.owncloud.files.interfaces.OnDatatransferProgressListener;
+import eu.alefzero.webdav.OnDatatransferProgressListener;
+
+import android.util.Log;
+
/**
* A RequestEntity that represents a File.
if (listener != null)
listener.transferProgress(i);
}
+ } catch (IOException io) {
+ Log.e("FileRequestException", io.getMessage());
+ throw new RuntimeException("Ugly solution to workaround the default policy of retries when the server falls while uploading ; temporal fix; really", io);
+
} finally {
instream.close();
}