We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbb5576 commit 3921a08Copy full SHA for 3921a08
1 file changed
twitterv1/interaction.go
@@ -78,10 +78,13 @@ func status_update_with_media(c *fiber.Ctx) error {
78
status := c.FormValue("status")
79
80
// The docs say it's an array, but I can only upload one imageData.... so idk
81
- imageData, err := c.FormFile("media")
+ imageData, err := c.FormFile("media") // i love it when things dont follow the docs
82
if err != nil {
83
- fmt.Println("Error:", err)
84
- return ReturnError(c, "Please upload an image", 195, fiber.StatusForbidden)
+ imageData, err = c.FormFile("media[]")
+ if err != nil {
85
+ fmt.Println("Error:", err)
86
+ return ReturnError(c, "Please upload an image", 195, fiber.StatusForbidden)
87
+ }
88
}
89
90
// read the image file content
0 commit comments