Skip to content

Conversation

@JBtje
Copy link
Contributor

@JBtje JBtje commented Mar 20, 2019

form-data works with many packages, however it does not work out of the box with Axios. Many times the question has been asked as to how to make it work, but no proper solution is provided. I think it would be nice if form-data allows users to obtain the datapackage (as buffer) so they can do with it whatever they like, e.g. pass it over to Axios.

Added method: getBuffer()
Added Test: to test GetBuffer()
Updated: Certificates where signed with small key and needed replacement to make the test pass.

Added method: getBuffer()
Added Test: to test GetBuffer()
@JBtje JBtje changed the title Updated: Certificate Added "getBuffer" method and updated certificates Mar 20, 2019
@mapleeit
Copy link
Collaborator

Great work. Please take a look at this! @alexindigo

BTW. It seems CI was broken. #424 only change some docs, but it failed anyway.

099h1IJLtsPJVphSDBTtE0FLB0YIzT7bG44Drm/975XEZjoQ9TmYbTMCAwEAATAN
BgkqhkiG9w0BAQUFAANBALSDmvKXb4cE622OdSRrDsnr8xUosetsAGSlGauWBKgc
DNQhP6wSQHTAJT8wiVgSPYwnhcnzkZlwzdfMHMtzFIc=
MIIFfzCCA2egAwIBAgIJALeHtgIY/UKcMA0GCSqGSIb3DQEBCwUAMFUxCzAJBgNV
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would we need to change test certs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the installed certificate, I was unable to run all the tests: the certificate format was outdated (if i recall correctly). So I added a new one, all tests succeeded and pushed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I restarted windows builds 🤞

@alexindigo
Copy link
Member

Thanks @JBtje looks interesting.

@mapleeit Agreed, looks nice, not sure about test cert though.
And I'll check why Windows is unhappy again :)

@alexindigo alexindigo merged commit ff085f3 into form-data:master Jun 19, 2019
@JBtje JBtje deleted the add-getBuffer branch June 19, 2019 06:37
@JBtje
Copy link
Contributor Author

JBtje commented Jun 19, 2019

It is an honour to have contributed to such an important project. Many thanks for merging!

@alexindigo
Copy link
Member

@JBtje Thanks for your help and pushing it forward. I'll publish your change shortly.

@alexindigo
Copy link
Member

@mapleeit
Copy link
Collaborator

Good to know that. Thanks!

@mapleeit
Copy link
Collaborator

mapleeit commented Jun 20, 2019

In addition, I'm wondering is there any document for all APIs? I couldn't find that in README or anywhere else.

If YES, we should add this to the document.

@JBtje
Copy link
Contributor Author

JBtje commented Jun 20, 2019

I don't think there is... I realised it yesterday that my merge req. didn't have documentation update. But havent had the time to make a proper one and submit it. Will see if I can do that upcomming weekend.

@mapleeit
Copy link
Collaborator

Sounds great. If you need any help, please contact me. : )

@alexindigo
Copy link
Member

Thank you for doing it @mapleeit

ljharb added a commit that referenced this pull request Sep 21, 2024
ljharb added a commit that referenced this pull request Sep 21, 2024
ljharb added a commit that referenced this pull request Sep 21, 2024
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

Successfully merging this pull request may close these issues.

3 participants