You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because c.Attachment first argument is path to file that is served. In your case path is wrong as exec.Command("ls",agr... ).Output() string ends with new line \n
NB: do not use exec.Comman to get directory listing or check if file exists. There are correct methods in Go standard library to do that. Using exec for these kinds of stuff will lead you to security risks.
hello
i have issue download file
download.go
index.html
main.go
after start server, i have send request server to download a file. but message log status 404 not found. i had log print file and it's exist
but i can't download file
everyone help my this case. thanks
The text was updated successfully, but these errors were encountered: