Permettre de téléverser plusieurs fichiers à la fois dans admin-upload
#182
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,7 @@ func (request V1DocumentsPOST) Request(v *voki.Voki) (response apiresponse.V1Doc
|
||||||
|
|
||||||
var _ request.Requester[apiresponse.V1DocumentPOST] = V1DocumentPOST{}
|
var _ request.Requester[apiresponse.V1DocumentPOST] = V1DocumentPOST{}
|
||||||
|
|
||||||
|
// Deprecated: Use V1DocumentsPOST instead
|
||||||
type V1DocumentPOST struct {
|
type V1DocumentPOST struct {
|
||||||
Data struct {
|
Data struct {
|
||||||
Document *multipart.FileHeader `document`
|
Document *multipart.FileHeader `document`
|
||||||
|
@ -86,6 +87,7 @@ type V1DocumentPOST struct {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use NewV1DocumentsPOST instead
|
||||||
func NewV1DocumentPOST(bucket string, document *multipart.FileHeader) (request V1DocumentPOST, err error) {
|
func NewV1DocumentPOST(bucket string, document *multipart.FileHeader) (request V1DocumentPOST, err error) {
|
||||||
if bucket == "" {
|
if bucket == "" {
|
||||||
err = fmt.Errorf("NewV1DocumentPOST requires non-nil bucket name")
|
err = fmt.Errorf("NewV1DocumentPOST requires non-nil bucket name")
|
||||||
|
|
Loading…
Reference in a new issue