Skip to content

Commit 1c8e9e5

Browse files
committed
added comment re files
1 parent e18767f commit 1c8e9e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphql.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ func (req *Request) Var(key string, value interface{}) {
273273
}
274274

275275
// File sets a file to upload.
276+
// Files are only supported with a Client that was created with
277+
// the UseMultipartForm option.
276278
func (req *Request) File(fieldname, filename string, r io.Reader) {
277279
req.files = append(req.files, file{
278280
Field: fieldname,

0 commit comments

Comments
 (0)