Pudu programming language
Menu
API reference

Std.Http.Multipart.senderName

1 declaration

fn

senderName: &Std.Http.Multipart.Part -> Option[Str]

This is a callable function.

What it does

What the sender called the file.

What the sender called it, and nothing more. It is not a path and must not

be joined to one: a file uploaded as ../../etc/passwd has that as its

name, and a program that joins it to a directory has been told where to

write by whoever sent it. Ask safeName for something that may be written.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.
  • Names inside [ ] are type arguments, such as the item type held by a collection.
  • Option holds Some(value) or None when no value is available.

Back to Std.Http.MultipartSearch related declarations