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

View payload data for POST requests in the network tab (to view uploaded files) #24

Closed
richardsondev opened this issue Mar 15, 2022 · 6 comments
Labels
feature New feature or request tracked This issue is now tracked on our internal backlog

Comments

@richardsondev
Copy link

richardsondev commented Mar 15, 2022

When uploading a file via a POST request created by a form with content type "multipart/form-data", all form data disappears from the request in the network tab.

There was a similar report for Chrome as well here: https://stackoverflow.com/a/59871612

Expected:
Show the form data in the network tab for these types of POST requests. Ideally, if all the data including the file data could be shown, it would be great. Although, just having the non-file data would be nice too.

To reproduce:

  1. Go to a browser page with a form file upload like: https://www.filestack.com/fileschool/html/html-file-upload-tutorial-example/
  2. Open the network tab and ensure recording is on
  3. Upload a file via the form and submit
  4. Inspect the POST request in the network tab and see there is no form data visible

AB#38549603

@richardsondev richardsondev added the feature New feature or request label Mar 15, 2022
@captainbrosset
Copy link
Contributor

Thanks for filing this issue. It'd be really good if we could see the payload data indeed. I noticed that Firefox DevTools does have it. Here is an example:

image

The Request sidebar tab in the Network panel shows all of the data sent with the form submission, including the file content.

If I do a GET request with Chrome or Edge, I also get something similar:

image

Unfortunately, I'm not seeing the Payload sidebar tab for POST requests. So this seems like a good thing to add.

@captainbrosset captainbrosset changed the title View form data when uploading a file in the network tab View payload data for POST requests in the network tab (to view uploaded files) Mar 16, 2022
@captainbrosset captainbrosset added the tracked This issue is now tracked on our internal backlog label Mar 16, 2022
@captainbrosset
Copy link
Contributor

I've moved this to the team's internal backlog for evaluation and prioritization. Thanks for your feedback!

@GoldenretriverYT
Copy link

any chance this will be implemented?

@captainbrosset
Copy link
Contributor

Testing again today with the steps provided in this issue's description, and things seem to have changed.
I now see a FormData section under Payload, which shows the file that has been sent:

image

@richardsondev mind testing again and letting us know what you see?

@richardsondev
Copy link
Author

Tested with 125.0.2535.92 and it looks good to me! Thanks for the resolution

@captainbrosset
Copy link
Contributor

Great to hear. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request tracked This issue is now tracked on our internal backlog
Projects
None yet
Development

No branches or pull requests

3 participants