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

Support for file upload #53

Closed
albertotn opened this issue Jul 3, 2018 · 7 comments
Closed

Support for file upload #53

albertotn opened this issue Jul 3, 2018 · 7 comments

Comments

@albertotn
Copy link
Contributor

How to upload file using resting ?

Take as example this call using CURL:

curl -X POST "http://localhost:8080/test/rest/test/674/import/test" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "[email protected];type="

It's possible to select a file and the upload to rest service?

@mirkoperillo
Copy link
Owner

Actually this feature is totally missing.

@albertotn
Copy link
Contributor Author

It's possible to include this feature on next major release ?

@mirkoperillo
Copy link
Owner

Hi @albertotn,

this feature will be present in the next major version.
You can see the list of features for the next major here

@mirkoperillo
Copy link
Owner

@albertotn finally this feature is available in version 1.4.0

@albertotn
Copy link
Contributor Author

how to enable this in the interface ? I'm not able to see any dedicated button to specify my local file

@mirkoperillo
Copy link
Owner

You should have Resting v1.4.0 almost
Then in the Body tab of the request you have to select form-data type

A new dropdown will appear near name field with values Text or File

Selezione_032

@albertotn
Copy link
Contributor Author

so it's fine, thanks!

alexmario74 pushed a commit to alexmario74/resting that referenced this issue Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants