var/file/F=input("Input a file to upload.\nThe file may not be over 500 bytes.")as null|file
if(length(F)<=500) //look into the file size that the client sent and determine it's allowed
F=client.Download(F) //actually start downloading the file
else alert("The file is over 500 bytes. Rejected!") //reject it otherwise
This would prevent unnessesary file uploads to the server by only sending the file size and such information. client.Download() would begin a download of a file. F = file identifier used in the download.