3131import synapticloop .b2 .response .B2FileResponse ;
3232import synapticloop .b2 .response .B2GetUploadUrlResponse ;
3333import synapticloop .b2 .response .B2ResponseHeaders ;
34- import synapticloop .b2 .util .ChecksumHelper ;
3534import synapticloop .b2 .util .URLEncoder ;
3635
3736/**
@@ -63,6 +62,7 @@ public class B2UploadFileRequest extends BaseB2Request {
6362 * @param b2GetUploadUrlResponse the upload URL for this request
6463 * @param fileName the name of the file
6564 * @param file the file to upload
65+ * @param sha1Checksum the sha1 checksum for the file
6666 * @param fileInfo the file info map which are passed through as headers prefixed by "X-Bz-Info-"
6767 */
6868 public B2UploadFileRequest (CloseableHttpClient client , B2AuthorizeAccountResponse b2AuthorizeAccountResponse ,
@@ -80,6 +80,7 @@ public B2UploadFileRequest(CloseableHttpClient client, B2AuthorizeAccountRespons
8080 * @param b2GetUploadUrlResponse the upload URL for this request
8181 * @param fileName the name of the file
8282 * @param file the file to upload
83+ * @param sha1Checksum the sha1 checksum for the file
8384 * @param mimeType the mimeType (optional, will default to 'b2/x-auto' which
8485 * backblaze will attempt to determine automatically). The MIME type of
8586 * the content of the file, which will be returned in the Content-Type
@@ -103,6 +104,7 @@ public B2UploadFileRequest(CloseableHttpClient client, B2AuthorizeAccountRespons
103104 * @param b2GetUploadUrlResponse the upload URL for this request
104105 * @param fileName the name of the file
105106 * @param file the file to upload
107+ * @param sha1Checksum the sha1 checksum for the file
106108 */
107109 public B2UploadFileRequest (CloseableHttpClient client , B2AuthorizeAccountResponse b2AuthorizeAccountResponse ,
108110 B2GetUploadUrlResponse b2GetUploadUrlResponse , String fileName , File file , String sha1Checksum ) {
@@ -119,6 +121,7 @@ public B2UploadFileRequest(CloseableHttpClient client, B2AuthorizeAccountRespons
119121 * @param b2GetUploadUrlResponse the upload URL for this request
120122 * @param fileName the name of the file
121123 * @param file the file to upload
124+ * @param sha1Checksum the sha1 checksum for the file
122125 * @param mimeType the mimeType (optional, will default to 'b2/x-auto' which
123126 * backblaze will attempt to determine automatically). The MIME type of
124127 * the content of the file, which will be returned in the Content-Type
0 commit comments