Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/gres: gres.Load not working as expected #4172

Open
canbusio opened this issue Feb 27, 2025 · 1 comment
Open

os/gres: gres.Load not working as expected #4172

canbusio opened this issue Feb 27, 2025 · 1 comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@canbusio
Copy link

Go version

1.23.4

GoFrame version

2.8.3

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

err := gres.Load("./xxx/xxx.file")
fmt.Println(err)

What did you see happen?

gzip.NewReader failed: gzip: invalid header

What did you expect to see?

file is loaded to resource without error

@canbusio canbusio added the bug It is confirmed a bug, but don't worry, we'll handle it. label Feb 27, 2025
@canbusio
Copy link
Author

Another os/gres related quetions:
Since I have a *File type variable f from gres.UnpackContent , how can I add it directly to resource?
gres.Add(string(f.Content())) also return a error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

1 participant