Check out the Red programming language from the same author
Rsp /

Store

     test.html : ...
                 <form target="test.rsp" method="post" enctype="multipart/form-data">
                 <input type="file" name="myphoto">
                 <input type="submit" name="submit" value="Upload">
                 </form>
                 ...

     test.rsp : <%
                    probe file: request/content/myphoto
                    request/store/as file %/home/www/pictures/
                    print exists? %/home/www/pictures/john.jpg
                %>

  will output : ["john.jpg" %/usr/cheyenne/incoming/fgffdkwd.tmp]
                true


Page last modified on March 11, 2011, at 12:07 AM
Powered by Cheyenne Web Server - © Softinnov