They will be removed once the request finishes. The way to access them is
usually by the FormFile method on *http.Request or to create a multipart
reader and break it out yourself.

The reason the latter is interesting is because it can avoid storing data
you are not prepared to handle.

On Thu, Jul 16, 2020 at 12:44 PM hao dong <hao.a.d...@gmail.com> wrote:

> As I have learned, http server will store user-upload file on disk when
> its size exceed 32MB.
> I read the source code, and find out the large file to store in
> os.TempDir(), however, after uploading a large file, I can not find the
> file in the temp dir.
> Cloud someone enlight me, where is the temp 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/0232db86-9bfb-42ae-b24b-49ea57a222ado%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/0232db86-9bfb-42ae-b24b-49ea57a222ado%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
J.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAGrdgiWEt%3DePB20PX8Cj3xEcmf1tzWwpaAhHhRLC_O0GvOoWyQ%40mail.gmail.com.

Reply via email to