@@ -60,6 +60,8 @@ public class B2UploadFileRequest extends BaseB2Request {
6060 * @param fileName the name of the file
6161 * @param file the file to upload
6262 * @param fileInfo the file info map which are passed through as headers prefixed by "X-Bz-Info-"
63+ *
64+ * @throws B2ApiException if there was an error in the request
6365 */
6466 public B2UploadFileRequest (CloseableHttpClient client , B2AuthorizeAccountResponse b2AuthorizeAccountResponse ,
6567 B2GetUploadUrlResponse b2GetUploadUrlResponse , String fileName , File file , Map <String , String > fileInfo ) throws B2ApiException {
@@ -78,6 +80,8 @@ public B2UploadFileRequest(CloseableHttpClient client, B2AuthorizeAccountRespons
7880 * @param file the file to upload
7981 * @param mimeType the mimeTyp (optional, will default to 'b2/x-auto' which
8082 * backblaze will attempt to determine automatically)
83+ *
84+ * @throws B2ApiException if there was an error in the request
8185 */
8286 public B2UploadFileRequest (CloseableHttpClient client , B2AuthorizeAccountResponse b2AuthorizeAccountResponse ,
8387 B2GetUploadUrlResponse b2GetUploadUrlResponse , String fileName , File file , String mimeType ) throws B2ApiException {
@@ -94,12 +98,11 @@ public B2UploadFileRequest(CloseableHttpClient client, B2AuthorizeAccountRespons
9498 * @param b2GetUploadUrlResponse the upload URL for this request
9599 * @param fileName the name of the file
96100 * @param file the file to upload
101+ *
102+ * @throws B2ApiException if there was an error in the request
97103 */
98- public B2UploadFileRequest (CloseableHttpClient client ,
99- B2AuthorizeAccountResponse b2AuthorizeAccountResponse ,
100- B2GetUploadUrlResponse b2GetUploadUrlResponse ,
101- String fileName ,
102- File file ) throws B2ApiException {
104+ public B2UploadFileRequest (CloseableHttpClient client , B2AuthorizeAccountResponse b2AuthorizeAccountResponse ,
105+ B2GetUploadUrlResponse b2GetUploadUrlResponse , String fileName , File file ) throws B2ApiException {
103106
104107 this (client , b2AuthorizeAccountResponse , b2GetUploadUrlResponse , fileName , file , null , null );
105108 }
@@ -117,13 +120,11 @@ public B2UploadFileRequest(CloseableHttpClient client,
117120 * backblaze will attempt to determine automatically)
118121 * @param fileInfo the file info map which are passed through as headers
119122 * prefixed by "X-Bz-Info-"
123+ *
124+ * @throws B2ApiException if there was an error in the request
120125 */
121- public B2UploadFileRequest (CloseableHttpClient client ,
122- B2AuthorizeAccountResponse b2AuthorizeAccountResponse ,
123- B2GetUploadUrlResponse b2GetUploadUrlResponse ,
124- String fileName ,
125- File file ,
126- String mimeType ,
126+ public B2UploadFileRequest (CloseableHttpClient client , B2AuthorizeAccountResponse b2AuthorizeAccountResponse ,
127+ B2GetUploadUrlResponse b2GetUploadUrlResponse , String fileName , File file , String mimeType ,
127128 Map <String , String > fileInfo ) throws B2ApiException {
128129
129130 this (client ,
0 commit comments