Commit bd0a977
authored
Update version to 0.19.0 and enhance file upload functionality (#69)
* Update version to 0.19.0 and enhance file upload functionality
- Bump package version to 0.19.0.
- Increase maximum workers for file uploads from 4 to 6.
- Introduce support for uploading chunks to presigned URLs, including progress reporting and error handling.
- Refactor upload logic to accommodate both presigned URL and server uploads, improving overall upload reliability.
* Implement validation for presigned URL count during file uploads
- Added a check to ensure the number of presigned URLs matches the expected chunk count, raising a ValueError if there is a discrepancy. This enhancement improves error handling and ensures consistency in the file upload process.
* Enhance ETag handling in HTTPTransport
- Updated the response handling in the HTTPTransport class to raise a NetworkError if the ETag header is missing after a successful presigned URL PUT request. This change improves error reporting and ensures that clients are informed of potential issues with the upload response.
* Enhance error handling for presigned URL uploads in HTTPTransport
- Added APIError exception handling for client-side errors (HTTP 400-499) during presigned URL uploads. This improvement provides clearer feedback when uploads are rejected, enhancing the robustness of the upload process.1 parent 1d45fe3 commit bd0a977
3 files changed
Lines changed: 140 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| |||
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
86 | 149 | | |
87 | | - | |
| 150 | + | |
88 | 151 | | |
89 | 152 | | |
90 | 153 | | |
| |||
101 | 164 | | |
102 | 165 | | |
103 | 166 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 167 | + | |
116 | 168 | | |
117 | 169 | | |
118 | 170 | | |
| |||
121 | 173 | | |
122 | 174 | | |
123 | 175 | | |
124 | | - | |
125 | 176 | | |
126 | 177 | | |
127 | 178 | | |
| |||
130 | 181 | | |
131 | 182 | | |
132 | 183 | | |
133 | | - | |
134 | 184 | | |
135 | 185 | | |
| 186 | + | |
| 187 | + | |
136 | 188 | | |
137 | 189 | | |
138 | 190 | | |
139 | 191 | | |
140 | | - | |
| 192 | + | |
141 | 193 | | |
142 | 194 | | |
143 | 195 | | |
| |||
151 | 203 | | |
152 | 204 | | |
153 | 205 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
158 | 219 | | |
159 | 220 | | |
160 | 221 | | |
| |||
163 | 224 | | |
164 | 225 | | |
165 | 226 | | |
166 | | - | |
| 227 | + | |
167 | 228 | | |
168 | 229 | | |
169 | 230 | | |
| |||
180 | 241 | | |
181 | 242 | | |
182 | 243 | | |
183 | | - | |
| 244 | + | |
184 | 245 | | |
185 | 246 | | |
186 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
127 | 181 | | |
128 | 182 | | |
129 | 183 | | |
| |||
0 commit comments