# How to write a request with form-data using Robotframework

**URL:** <https://forum.robotframework.org/t/how-to-write-a-request-with-form-data-using-robotframework/8925>\
**Category:** Robot Framework\
**Created:** [31 May 2025 14:45 UTC](https://forum.robotframework.org/t/how-to-write-a-request-with-form-data-using-robotframework/8925 "2025-05-31T14:45:26Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [2 June 2025 10:51 UTC](https://forum.robotframework.org/t/how-to-write-a-request-with-form-data-using-robotframework/8925/6 "2025-06-02T10:51:58Z")

</div>

Hi Fatima,

The way to upload the file seems to vary from app to app, and it’s not something I’ve done myself, but there are examples on the forum of people who’ve succeeded, I’ll give you a few links to look at:

- [Uploading files with auth](https://forum.robotframework.org/t/uploading-files-with-auth/6850)
- [I am getting error 400 on automating POST API with file upload(string($binary))ad(](https://forum.robotframework.org/t/i-am-getting-error-400-on-automating-post-api-with-file-upload-string-binary-ad/6182)
- [Facing Issue with testing File Upload API using robot framework](https://forum.robotframework.org/t/facing-issue-with-testing-file-upload-api-using-robot-framework/254)

Hopefully one of those will help you.

Dave.

---

_[View the full topic](https://forum.robotframework.org/t/how-to-write-a-request-with-form-data-using-robotframework/8925)._
