opendrive: refactor to use existing lib/rest facilities for uploads
This also checks the return of the call to make sure the number of bytes written was as expected.
This commit is contained in:
parent
71587344c6
commit
493dfb68fd
2 changed files with 21 additions and 68 deletions
|
@ -212,3 +212,7 @@ type permissions struct {
|
|||
FileID string `json:"file_id"`
|
||||
FileIsPublic int64 `json:"file_ispublic"`
|
||||
}
|
||||
|
||||
type uploadFileChunkReply struct {
|
||||
TotalWritten int64 `json:"TotalWritten"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue