Uploading Images with HTTPPost

Hi,

I am trying to upload an image to this testing api for testing: https://0x0.st/

Attached is a patch that tried to upload the vvvv logo to there with HTTPPost (MultiPart)

I wasnt sure if the filename input on the Create (FileParameter) is for a path to file and the data stream optional, or if filename refers to filename that results in the url only.

But either way, it doesnt work and I dont get a Bad Request or simmilar status massage.

Does someone has an idea how to get this to work?

Thanks!

UploadImageHTTPpost.7z (10.2 KB)

You should name the file ‘file’.
As an answer, you will receive a short URL.

UploadImageHTTPPost_restsharp.vl (25.4 KB)

I used Restsharp because I find it more convenient and flexible. I’m not sure how to do this with native tools.


I’ve experimented with your example a little, but I’m not sure why I can’t get an answer from the server.

The HTTPPost (Multipart) node was indeed broken. Fixed in latest preview, but also needs these slightly modified patch:

UploadImageHTTPPost.vl (23.1 KB)

1 Like

awesome, big thanks for the quick help @yar @joreg

sounds like could be a good help patch also :)