You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your Pinata client first of all.
I needed to upload a directory with files. In PinFileToIpfsAsync I've passed Action in which I've called AddPinataFile only once and passed MultipartFormDataContent object in it. Since MultipartFormDataContent is a heir of HttpContent code worked correctly, but when I opened Pinata I saw, that I've uploaded a file without extension.
I was puzzled until I opened your source code and after that I've replaced one call of AddPinataFile passing MultipartFormDataContent with foreach and passing ByteArrayContent.
It is not intended to use MultipartFormDataContent in AddPinataFile, so maybe it should be prevented?
Alternatives
Throw ArgumentException when user passes MultipartFormDataContent object in AddPinataFile.
If the feature request is approved, would you be willing to submit a PR?
Yes
The text was updated successfully, but these errors were encountered:
Context
Hi, thanks for your Pinata client first of all.
I needed to upload a directory with files. In
PinFileToIpfsAsync
I've passedAction
in which I've calledAddPinataFile
only once and passedMultipartFormDataContent
object in it. SinceMultipartFormDataContent
is a heir ofHttpContent
code worked correctly, but when I opened Pinata I saw, that I've uploaded a file without extension.I was puzzled until I opened your source code and after that I've replaced one call of
AddPinataFile
passingMultipartFormDataContent
with foreach and passingByteArrayContent
.It is not intended to use
MultipartFormDataContent
inAddPinataFile
, so maybe it should be prevented?Alternatives
Throw
ArgumentException
when user passesMultipartFormDataContent
object inAddPinataFile
.If the feature request is approved, would you be willing to submit a PR?
Yes
The text was updated successfully, but these errors were encountered: