upload large files to web server using golang

764 views
Skip to first unread message

will

unread,
Jun 27, 2015, 2:44:31 PM6/27/15
to golan...@googlegroups.com
Hi gophers,

How does one upload large files (>500mb) to a golang web server?

kind regards,

Will

Kiki Sugiaman

unread,
Jun 27, 2015, 3:10:42 PM6/27/15
to golan...@googlegroups.com
What specifically do you have question with?
Basically http://golang.org/pkg/net/http/#Request.FormFile will give you the "handle" on the uploaded file if uploaded via browser form.
From there you can io.Copy() into a destination os.File
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages