"What's the correct syntax for CURL POST with file input?"
Hey everyone,
I'm trying to upload a file using CURL POST with file input, but I keep getting errors.
I've tried stuff like:
`curl -X POST -F "file=@test.txt" http://example.com/upload`
But it’s not working—am I missing something?
Also, do I need extra headers or something? The docs are kinda confusing.
Any help would be awesome! Thanks in advance.
(PS: If you’ve got a working example, pls share!)
Hey everyone,
I'm trying to upload a file using CURL POST with file input, but I keep getting errors.
I've tried stuff like:
`curl -X POST -F "file=@test.txt" http://example.com/upload`
But it’s not working—am I missing something?
Also, do I need extra headers or something? The docs are kinda confusing.
Any help would be awesome! Thanks in advance.
(PS: If you’ve got a working example, pls share!)
