I use TempFile.persist_to() to save file, but the dest file contains not only the original contents,but also http form info in the begin and end of the file. #2659
-
my code:
I use curl to upload a file :
The post request was succeed, but the dest file seems not right ,like that:
I hope someone would help me, tks. |
Beta Was this translation helpful? Give feedback.
Answered by
SergioBenitez
Dec 1, 2023
Replies: 1 comment
-
You should be getting a warning in your console telling you why what you're doing is probably not what you want to be doing. There's also a FAQ entry for exactly this. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jkklee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be getting a warning in your console telling you why what you're doing is probably not what you want to be doing. There's also a FAQ entry for exactly this.