У меня есть веб-приложение, которое может обрабатывать POSTing формы html следующим образом:
<form action="x" method="post" enctype="multipart/form-data">
<input name="xfa" type="file">
<input name="pdf" type="file">
<input type="submit" value="Submit">
</form>
Обратите внимание, что есть два элемента type="file"
<input>
.
Как я могу script ПОЧТОВИТЬ это из Powershell script? Я планирую сделать это, чтобы создать простую тестовую структуру для службы.
Я нашел WebClient.UploadFile(), но это может обрабатывать только один файл.
Спасибо, что нашли время.