Testing multipart/form-data uploads with Post Test Server

The fact that I am getting feature requests means people are actually using my post test server. This makes me happy :) The most recent thing people asked for was multipart/form-data uploads. As an example for this behavior see my test form (which was submitted by a user who was super helpful).

Update:This poor post has been imported from blog to blog over the years and as a result this code snippet has been horribly maimed and will not be formatted. C’est la vie.

I don’t think you can set the content type to audio/wav on an upload. The receiving server doesn’t care about the contents of the file, it just cares about what format the data being sent to it is stored in. This is why octet-stream works.

Hey Henry,
Your server is immensely helpful. I wanted to test background upload in android and your server saved a lot of time.
Just wanted you know that Data Im uploading is useless so you can delete it anytime. Hoping this is not costing you much.

Hi Henry, a big thank you for the server and guides. Most helpful when i needed. I have a problem though and i’m not sure what’s wrong with the method i’m using. Using c# to issue a file upload with the multipart/form and i’m returned with response below but when i’m not able to find the file i uploaded or download/save it. What did i miss? Pls help. Thanks.

First thanks for this service. It has helped me a lot in testing my code. It would be nice, in the “== Multipart File upload. ==” section, to show a hash of the file, such as the sha256 hash. Perhaps it could be controlled via a query parameter. Thanks.