question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't send POST request with multiple files

See original GitHub issue

I’m trying this:

http -f POST http://localhost:8000/products/images files\[\]@B497A_1.jpg files\[\]@B497A_2.jpg

But the request only contains the last file.

Do we have support for multiple files yet?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
jakubroztocilcommented, Feb 16, 2017

@wordyallen

http -f :3090/api/lots  photos@200.png  photos@300.png

(Please create a new issue if you are still having an issue with the syntax.)

5reactions
tiny-village-labcommented, Aug 18, 2017

Is this working for you ?

For me this syntax is working :

http -f :3090/api/lots photos[]@200.png photos[]@300.png

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot post multiple files - Stack Overflow
So... you have a multipart.Fileheader. First you try to use it as a byte stream (which it is not) and it fails. Then...
Read more >
Can't send POST request with multiple files · Issue #267 - GitHub
I'm trying this: http -f POST http://localhost:8000/products/images files\[\]@B497A_1.jpg files\[\]@B497A_2.jpg But the request only ...
Read more >
File Uploads - Django documentation
POST or request.FILES – it doesn't make sense to change upload handlers after upload handling has already started. If you try to modify...
Read more >
Uploading multiple files - Manual - PHP
Example #1 Uploading multiple files. <form action="file-upload.php" method="post" enctype="multipart/form-data"> Send these files:<br /> <input ...
Read more >
Create a file request - Microsoft Support
People you request files from can only upload files; they can't see the content ... All the files sent to you are saved...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found