See the documentation of `os.TempDir` at https://golang.org/pkg/os/#TempDir

> On Windows, it uses GetTempPath, returning the first non-empty value from 
> %TMP%, %TEMP%, %USERPROFILE%, or the Windows directory.

Lutz

________________________________________
Von: golang-nuts@googlegroups.com <golang-nuts@googlegroups.com> im Auftrag von 
hao dong <hao.a.d...@gmail.com>
Gesendet: Donnerstag, 16. Juli 2020 12:44
An: golang-nuts
Betreff: [go-nuts] where is temp file created by http server

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<mailto: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>.

-- 
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/AM7P191MB106017ACC261B245242CF7BA9E7F0%40AM7P191MB1060.EURP191.PROD.OUTLOOK.COM.

Reply via email to