Skip to content

Upload a file from postman #86

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

Closed
karenpio opened this issue Aug 17, 2015 · 4 comments
Closed

Upload a file from postman #86

karenpio opened this issue Aug 17, 2015 · 4 comments

Comments

@karenpio
Copy link

Hi! I'm having troubles uploading a file. When I consume the endpoint to upload an image (http://0.0.0.0:3000/api/containers/profile_pics/upload) and I select the image to send (Body - form-data) But in the docs there's no information about how the file should be sent. I upload the file with a key "file", but the request never ends. Is there a way to upload an image from postman? Because it's not working for me :\

Thanks

@TNT-Likely
Copy link

i have the same problem,if you reslove it ,please tell me @karenpio .
in addition i have one more question,how can i convert 'base64 image url' to multipart/form-data?

thanks

@tanogalego
Copy link

@karenpio you are ok, just use Header "Accept" with value "multipart/form-data", not setting "Content-type". That works for me from Postman. @TNT-Likely

@richardpringle
Copy link
Contributor

Looks like this is solved. @karenpio or @TNT-Likely, please re-open the issue and mention me directly if you are still having troubles!

@alocvm
Copy link

alocvm commented Jun 14, 2018

image
I'm used headers Accept, it's not working
@tanogalego

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

5 participants