Загрузка файла

На этой странице можно загрузить csv-файл для LMS и вычистить из него посылки, которые имеют статус WOUT. Это необходимо для того, чтобы потенциально доставленным уже сегодня посылкам не было отправлено сообщение о возможности смены адреса или даты доставки.

The function then loops through each line of the file, checking if it does not end with the string "W;". If a line does not end with "W;", it is added to the outputText string and a count variable is incremented. Once all the lines have been processed, the function logs the number of lines processed to the console. The outputText string is then saved back to a file with a new filename based on the current date and time, and the downloadLink element is updated with a URL to download the new file.