# This example demonstrates you how "file upload": sending # a file to the server thru a html form. # allow file upload # uploadfilesize defines the maximum file size upload # in this case 100 bytes web::config uploadfilesize 100 # utility command to handle an HTML page proc page {title code} { web::putx {
File-path: | {web::put [web::htmlify $localname]} |
Localpath: | {web::put [web::htmlify $remotename]} |
We have configured websh3 to allow a maximum file size of 100 bytes. Therefore we have truncated the received file by {web::put [web::htmlify $NumBytesTruncated]} bytes. | |
Start of content: | {web::put [web::htmlify $chunk]} |