File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ pub fn json_body(request: Request, data: Json) -> Request {
158158/// Represents a file to be uploaded in a multipart form.
159159///
160160pub type FileUpload {
161- FileUpload ( filename : String , content_type : String , content : BitArray )
161+ FileUpload ( file_name : String , content_type : String , content : BitArray )
162162}
163163
164164/// Add a multipart/form-data body to the request for testing file uploads
@@ -171,7 +171,7 @@ pub type FileUpload {
171171///
172172/// ```gleam
173173/// let file = UploadedFile(
174- /// filename : "test.txt",
174+ /// file_name : "test.txt",
175175/// content_type: "text/plain",
176176/// content: <<"Hello, world!":utf8>>
177177/// )
@@ -230,7 +230,7 @@ fn build_multipart_body(
230230 "Content-Disposition: form-data; name=\" " : utf8 ,
231231 file . 0 : utf8 ,
232232 "\" ; filename=\" " : utf8 ,
233- { file . 1 } . filename : utf8 ,
233+ { file . 1 } . file_name : utf8 ,
234234 "\" \r \n " : utf8 ,
235235 "Content-Type: " : utf8 ,
236236 { file . 1 } . content_type : utf8 ,
You can’t perform that action at this time.
0 commit comments